To Documents

The Functions in Math

Math.abs Computes absolute value.
Math.acos Computes inverse cosine.
Math.asin Computes inverse sine.
Math.atan Computes inverse tangent.
Math.atan2 Computes angle from x-axis to a point.
Math.ceil Rounds number up.
Math.cos Computes cosine.
Math.exp Computes e to the power of number.
Math.floor Rounds number down.
Math.log Computes base e logarithm.
Math.max Computes maximum of a list of numbers.
Math.min Computes minimum of a list of numbers.
Math.pow Computes x to the power of y.
Math.random Returns random number in the interval (0.0, 1.0] (could be 0.0, but not 1.0).
Math.round Rounds to nearest integer.
Math.sin Computes sine.
Math.sqrt Computes square root.
Math.tan Computes tangent.