このページでは

計算の実行

ロケーターで基本的な計算を行うには

  1. Ctrl+K(macOSではCmd+K)を選択してロケータを起動する。
  2. = と入力し、その後にスペースを入れる。

    ロケーターフィルターのリスト

  3. 計算を実行する。

入力をナビゲートし、Enterを選択して結果をクリップボードにコピーする。

組み込み関数

((1 + 2) * 3)のような単純な数学演算の他に、以下の組み込み関数があります:

関数目的
abs(x)xの絶対値を返す
acos(x)xのアークコサインをラジアン単位で返す
asin(x)xのアークサインをラジアン単位で返す
atan(x)ラジアン単位で、xのアークタンジェントを返す
atan2(x, y)引数の商のアークタンジェントを返す
bin(x)xの2進表現を返す
ceil(x)次の整数に切り上げられたxの値を返す
cos(x)xの余弦を返す(xの単位はラジアン)
exp(x)Eの値をxのべき乗で返す
e()オイラー数E(2.71828...)を返す。
floor(x)xの値を切り捨てた整数を返す
hex(x)xの16進数表現を返します。
log(x)xの自然対数(底E)を返す
max([値1[, 値2[, ...]])与えられた数値の中で最も大きい値を返す
min([値1[, 値2[, ...]])与えられた数値の最小値を返す
oct(x)xの8進数表現を返す
pi()円周率(3.14159...)を返す
pow(x, y)xのy乗を返す
random()0から1の間の乱数を返す
round(x)xの値を次の整数に丸めた値を返す
sin(x)x の正弦を返す (x はラジアン単位)
sqrt(x)xの平方根を返す
tan(x)xの正接を返す (xはラジアン単位)

ロケータを使ったナビゲートロケータも参照

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.