Numbers 123 123.45 12e-2 0x1f2 (hex) 0b0100 (binary)
|
|
Operators + - * / ^ (power, e.g. 2^3) % (percent, e.g. 10%*250) ! (factorial, e.g. 3! is 1*2*3)
|
|
Constants pi e
|
|
Functions
| sqrt(n) |
Square root |
| log(n) |
Natural logarithm (base e) of a
number |
| log10(n) |
Base 10 logarithm of a number |
| hex(n) |
Base 16 (hexadecimal) |
| bin(n) |
Base 2 (binary) |
| ceil(n) |
Round upwards to the nearest
integer |
| floor(n) |
Round downwards to the nearest
integer |
| round(n) |
round to the nearest integer |
| abs(n) |
Absolute value |
| sin(n) |
Sine (sinus) |
| cos(n) |
Cosine (cosinus) |
| tan(n) |
Tangent |
| asin(n) |
Arc sine |
| acos(n) |
Arc cosine |
| atan(n) |
Arc
tangent | |