c0de/math
The math library has number functions and random numbers and needs INCLUDE c0de/math.
Functions
- ABS: Returns the absolute value of a number.
- SGN: Returns the sign of a number.
- SQR: Returns the square root of a number.
- EXP: Returns e raised to the power of a number.
- LOG: Returns the natural logarithm of a number.
- SIN: Returns the sine of an angle.
- COS: Returns the cosine of an angle.
- TAN: Returns the tangent of an angle.
- ATN: Returns the arc tangent of a number.
- INT: Rounds a number down to an integer.
- FIX: Cuts off the decimal places of a number.
- ROUND: Rounds a number to the nearest integer.
- TO_FLOAT: Converts a number to a FLOAT.
- DIV: Divides two integers and rounds towards 0.
- RANDOM: Returns a random number between 0 and 1.
- RANDOMIZE: Sets the seed of the random number generator.