Copyright © 2024 Sebastiaan Heins
math_pi is a variable defined in the math library, it is the value of PI, with double precision.
3.14159265358979323846
math_e is a variable defined in the math library, it is the value of E, with double precision.
2.71828182845904523536
double abs (double val)
Returns the absolute value of the given value.
long round (double val)
Returns the rounded value of the given value.
long floor (double val)
Returns the floor value of the given value.
long ceil (double val)
Returns the ceiling value of the given value.
double pow (double base, double exponent)
Returns the base to the power of the exponent.
double sqrt (double val)
Returns the square root of the given value.
double min (long|double|array a, double b = ?)
Returns the smallest value of the given values, or the smallest value in the given array.
double max (long|double|array a, double b = ?)
Returns the largest value of the given values, or the largest value in the given array.
double log (double val)
Returns the natural logarithm of the given value.
double log10 (double val)
Returns the base 10 logarithm of the given value.
double log2 (double val)
Returns the base 2 logarithm of the given value.
double exp (double val)
Converts the given value from degrees to radians.
double sin (double val)
Returns the sine of the given value.
double cos (double val)
Returns the cosine of the given value.
double tan (double val)
Returns the tangent of the given value.
double asin (double val)
Returns the arcsine of the given value.
double acos (double val)
Returns the arccosine of the given value.
double atan (double val)
Returns the arctangent of the given value.
double atan2 (double y, double x)
Returns the arctangent of the given values.
double clamp (double val, double min, double max)
Clamps the given value between the given minimum and maximum values.