[logo] Math Package Reference

Package Information

[Name]

math

[Overview]

Provides higher mathematical functions.

>>Functions

Floating Point Numbers

ceiling(X)   <Ceiling>

Returns the smallest value that is not less than X, and is equal to an integer.

[Where]

Guard and body

floor(X)   <Floor>

Returns the largest value that is not greater than X, and is equal to an integer.

[Where]

Guard and body

round(X)   <Round>

Returns the closest integer to X.

[Where]

Guard and body

Natural Logarithm

exp(X)   <e^X>

Returns the exponential number e raised to the power of X.

[Where]

Guard and body

log(X)   <Natural Logarithm>

Returns the natural logarithm (base e) of X.

[Where]

Guard and body

Power

power(X, N)   <Power>

Returns the value of X raised to the power of N.

[Where]

Guard and body

sqrt(X)   <Square Root>

Returns the positive square root of X.

[Where]

Guard and body

Misc

abs(X)   <Absolute Value>

Returns the absolute value of X.

[Where]

Guard and body

random   <Random Number>

Returns a random number that can be negative.

[Where]

Guard and body