Math API.
Authors: Alexander Færøy (ahf@0x90.dk
).
ceil/1 | Round a given number upwards towards to the nearest integer. |
floor/1 | Round a given number downwards towards the nearest integer. |
mod/2 | Return X mod Y. |
mod_pow/3 | Return B^E mod M. |
pow/2 | Return X^N. |
ceil(Value) -> integer()
Value = number()
Round a given number upwards towards to the nearest integer.
floor(Value) -> integer()
Value = number()
Round a given number downwards towards the nearest integer.
mod(X, Y) -> integer()
X = integer()
Y = integer()
Return X mod Y.
mod_pow(Base, Exponent, Modulus) -> Result
Base = number()
Exponent = number()
Modulus = number()
Result = number()
Return B^E mod M.
pow(X, N) -> integer()
X = integer()
N = integer()
Return X^N.