Method
|
Function
|
Math.abs()
|
Returns the absolute value of an integer
|
Math.ceil()
|
Rounds up
|
Clib.div()
|
Integer division, returns quotient and remainder
|
Math.exp()
|
Computes the exponential function
|
Math.floor()
|
Rounds down
|
Clib.frexp()
|
Breaks into a mantissa and an exponential power of 2
|
Clib.ldexp()
|
Calculates mantissa * 2 ^ exp
|
Clib.ldiv()
|
Integer division, returns quotient and remainder
|
Math.log()
|
Calculates the natural logarithm
|
Math.max()
|
Returns the largest of one or more values
|
Math.min()
|
Returns the smallest of one or more values
|
Clib.modf()
|
Splits a value into integer and fractional parts
|
Math.pow()
|
Calculates x to the power of y
|
Clib.rand()
|
Generates a random number
|
Math.random()
|
Returns a random number
|
Math.round()
|
Rounds a value up or down
|
Math.sqrt()
|
Calculates the square root
|
Clib.srand()
|
Seeds the random number generator
|