Math is a built-in object that has properties and methods for mathematical constants and functions. Not a function object.
Documentation Math by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static variables
staticread onlyPI:Float
Ratio of the circumference of a circle to its diameter, approximately 3.14159.
Static methods
staticexp(x:Float):Float
Returns Ex, where x is the argument, and E is Euler's constant (2.718…), the base of the natural logarithm.
staticmax(args:Rest<Int>):Int
staticmax(args:Rest<Float>):Float
Returns the largest of zero or more numbers.
staticmin(args:Rest<Int>):Int
staticmin(args:Rest<Float>):Float
Returns the smallest of zero or more numbers.