contents   index   previous   next



Math methods

Clib.abs()

Returns the absolute value of an integer.

Clib.acos()

Calculates the arc cosine.

Clib.asin()

Calculates the arc sine.

Clib.atan()

Calculates the arc tangent.

Clib.atan2()

Calculates the arc tangent of a fraction.

Clib.atof()

Converts ASCII string to a floating-point number.

Clib.atoi()

Converts ASCII string to an integer.

Clib.atol()

Converts ASCII string to an integer.

Clib.ceil()

Rounds up.

Clib.cos()

Calculates the cosine.

Clib.cosh()

Calculates the hyperbolic cosine.

Clib.div()

Integer division, returns quotient & remainder.

Clib.exp()()

Computes the exponential function.

Clib.fabs()

Absolute value.

Clib.floor()

Rounds down.

Clib.fmod()

Modulus, calculate remainder.

Clib.frexp()

Breaks into a mantissa and an exponential power of 2.

Clib.labs()

Returns the absolute value of an integer.

Clib.ldexp()

Calculates mantissa * 2 ^ exp.

Clib.ldiv()

Integer division, returns quotient & remainder.

Clib.log()

Calculates the natural logarithm.

Clib.log10()

Calculates the base-ten logarithm.

Clib.max()

Returns the largest of one or more values.

Clib.min()

Returns the minimum of one or more values.

Clib.modf()

Splits a value into integer and fractional parts.

Clib.pow()

Calculates x to the power of y.

Clib.rand()

Generates a random number.

Clib.sin()

Calculates the sine.

Clib.sinh()

Calculates the hyperbolic sine.

Clib.sqrt()

Calculates the square root.

Clib.srand()

Seeds random number generator.

Clib.tan()

Calculates the tangent.

Clib.tanh()

Calculates the hyperbolic tangent.

 

Math.abs()

Returns the absolute value of an integer.

Math.acos()

Calculates the arc cosine.

Math.asin()

Calculates the arc sine.

Math.atan()

Calculates the arc tangent.

Math.atan2()

Calculates the arc tangent of a fraction.

Math.ceil()

Rounds up.

Math.cos()

Calculates the cosine.

Math.exp()()

Computes the exponential function.

Math.floor()

Rounds down.

Math.log()

Calculates the natural logarithm.

Math.max()

Returns the largest of one or more values.

Math.min()

Returns the minimum of one or more values.

Math.pow()

Calculates x to the power of y.

Math.random()

Returns a random number.

Math.round()

Rounds value up or down.

Math.sin()

Calculates the sine.

Math.sqrt()

Calculates the square root.

Math.tan()

Calculates the tangent.

 


Math properties