Included Math Functions

Mwnci mathematical functions that are not part of the builtin functions can be loaded with

include("math")

Functions

Command Definition
ceil() Rounds a number UP to the nearest integer, if necessary, and returns the result.
degrees() Returns the conversion of an angle from radians to degrees.
dim() Returns the maximum of a-b, or 0 .
exp() Returns E raised to the power of x.
exp2() Returns x raised to the power of 2.
expm1() Returns E raised to the power of x, minus 1.
factorial() Returns the factorial of a number.
floor() Rounds a number DOWN to the nearest integer, if necessary, and returns the result.
fmod() Returns the floating point remainder of (x/y).
gcd() Returns the greatest common divisor of two integers.
highest() Returns the largest of two numbers.
hypot() Returns the hypotenuse of a right-angled triangle.
isprime() Returns true if the integer is a prime number.
lcm() Return the least common multiple of the specified integer arguments.
lowest() Returns the lowest of two numbers.
modf() Returns the fractional and integer parts of a numeric value.
pow() Returns the value of x to the power of y.
pow10() Returns the value of 10 to the power of x.
radians() Returns the conversion of an angle from degrees to radians.
round() Returns a floating point number that is a rounded version of the specified number