# Other mathematical functions

Name | Syntax | Returns
--- | --- | ---
Square root | sqrt(x) | Positive square root of x
Factorial | fact(x) | Value of x*(x-1)*(x-2)*...*1
Raise to power | pow(x,y) | Raises x to the power of y (xy)
Modulo | mod(a,b) | The remainder of a divided by b
Random | rand() | Random (decimal) number in the range 0 - 1
Exponent | exp(x) | Raises e to the power of x
Absolute value | abs(x) | Absolute value of x
Floor value | floor(x) | Value of x rounded down to the nearest integer
Ceiling value | ceil(x) | Value of x rounded up to the nearest integer
Round | round(x) | Value of x rounded to the nearest integer.
Fractional value | frac(x) | Fractional part of x (i.e. it is equivalent to mod(x,1) )
Logarithm | log(x) | Log (to base 10) of x
Natural Logarithm | ln(x) | Log to base e of x
Bit | bit(x,y) | Boolean value of the yth bit of the binary form of x.
Size | size(x) | Number of values in a list.

## See also:

- Trigonometric functions
- Custom functions