形式 | 概要 | 例 |
---|---|---|
+ |
2つの数値オペランドの合計を返します。 (足し算) | {0} + {1} ~ 0:1, 1:4 = 5 |
- |
2つの数値オペランドの差を返します。(引き算) | {0} - 4 ~ 0:10 = 6 |
* |
2つの数値オペランドの積を返します。(掛け算) | {0} * {1} ~ 0:2, 1:3 = 6 |
/ |
2つの数値オペランドの商を返します。(割り算) | {0} / {1} ~ 0:9, 1:3 = 3 |
and |
両方のオペランドが真であるかどうかを示します。 | {0} < 10 and {0} > 0 ~ 0:5 = True |
or |
オペランドのどちらか、または両方が真であるかどうかを示します。 | {0} < 2 or {0} >5 ~ 0:8 = True |
not |
ロジカル・オペランドが偽の場合に真を返します。 | not ({0} < 0) ~ 0:-5 = False |
= |
左オペランドが右オペランドと等しいかどうかを示します。 | {0} = 4 ~ 0:4 = True |
!= |
左オペランドが右オペランドと等しくないかどうかを示します。 | {0} != {1} ~ 0:2, 1:4 = True |
< |
左オペランドが右オペランドより小さいかどうかを示します。 | {0} < 0 ~ 0:2 = False |
<= |
左オペランドが右オペランドより小さいか等しいかを示します。 | {0} <=2 ~ 0:2 = True |
> |
左オペランドが右オペランドより大きいかどうかを示します。 | {0} > 0 ~ 0:8 = True |
>= |
左オペランドが右オペランドより大きいか等しいかを示します。 | {0} >= 5 ~ 0:10 = True |
if |
条件に基づいて値を返す | if ( {0} % {1} = 0, ‘Yes’, ‘No’ ) ~ 0:4, 1:2 = Yes |
in |
ある要素が値の集合に含まれるかどうかを返します。 | in ( {0}, {1}, {2}, {3} ) ~ 0:2, 1:1, 2:2, 3:3 = True |
Round |
最も近い整数または指定した小数点以下の桁数に値を丸めます。 | Round( {0}, 2) ~ 0:3.1415 = 3.14 |
Floor |
指定された数値以下の最大の整数を返します。 | Floor( {0} ) ~ 0:1.5 = 1 |
Ceiling |
指定された数値以上の整数のうち、最小の整数を返します。 | Ceiling( {0} ) ~ 0:1.5 = 2 |
Truncate |
数値の積分部分を計算します。 | Truncate( {0} ) ~ 0:3.14 = 3 |
Abs |
指定した数値の絶対値を返します。 | Abs( {0} ) ~ 0:-1 = 1 |
Min |
2つの数値のうち小さい方を返します。 | Min( {0}, {1} ) ~ 0:-4, 1:23 = -4 |
Max |
2つの数値のうち大きい方を返します。 | Max( {0}, {1} ) ~ 0:5, 1:8 = 8 |
Sqrt |
指定した数値の平方根を返します。 | Sqrt( {0} ) ~ 0:4 = 2 |
Pow |
指定された数値を指定されたべき乗で返します。 | Pow( {0}, 2) ~ 0:3 = 9 |
Exp |
e |
を指定のべき乗にしたものを返す。 | Exp( {0} ) ~ 0:0 = 1 |
Log |
指定した数値の対数を返します。 | Log( {0}, 10) ~ 0:1 = 0 |
Log10 |
指定した数値の底10の対数を返します。 | Log10( {0} ) ~ 0:1 = 0 |
Sign |
数値の符号を示す値を返します。 | Sign( {0} ) ~ 0:-10 = -1 |
Sin |
指定された角度の正弦を返します。 | Sin( {0} ) ~ 0:0 = 0 |
Cos |
指定された角度の余弦を返します。 | Cos( {0} ) ~ 0:0 = 1 |
Tan |
指定された角度の正接を返します。 | Tan( {0} ) ~ 0:0 = 0 |
Asin |
正弦が指定された数値である角度を返します。 | Asin( {0} ) ~ 0:0 = 0 |
Acos |
余弦が指定された数値である角度を返します。 | Acos( {0} ) ~ 0:1 = 0 |
Atan |
接線が指定された数値である角度を返します。 | Atan( {0} ) ~ 0:0 = 0 |