Math

Math methods and properties.

Description

Math is a built-in object that has methods for performing mathematical operations.

Properties

Property Description

Get the Euler’s number mathematical constant (℮).

String value representing infinity.

String value representing Not-a-Number.

Get the mathematical constant pi (π).

Static methods

Method Description

Get the absolute value of a number.

Get the inverse cosine in radians of a number.

Get the inverse sine in radians of a number.

Get the inverse tangent in radians of a number.

Round up a number.

Get the cosine of a number in radians.

Get the hyperbolic cosine of a number.

Convert radians to degrees.

Get the value of ℮ raised to the power of a number.

Round down a number.

Get the hypotenuse of a right triangle.

Get the base 10 logarithm of a number.

Get the natural logarithm, base e, of a number.

Get the base 10 logarithm of a number.

Get the larger of two numbers.

Get the arithmetic mean or average.

Get the smaller of the input parameter numbers.

Get the value of a base raised to a power.

Convert the value of a number in degrees to radians.

Get the value of a number rounded to the nearest integer.

Get the sign of a number.

Get the sine of a number in radians.

Get the hyperbolic sine of a number.

Get the square root of a number.

Get the tangent of a number in radians.

Get the hyperbolic tangent of a number.

Truncate a number to a given precision.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!