Math

Provides constants and functions for trigonometric, logarithmic, and other common mathematical functions.

Constants

math.e

Represents the natural logarithmic base, specified by the constant, e.

Value = 2.7182818284590451

Return Type: Double


math.pi

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

Value = 3.1415926535897931

Return Type: Double


math.tau

Represents the number of radians in one turn, specified by the constant, τ.

Value = 6.2831853071795862

Return Type: Double


Functions

math.min

Returns the smallest number.

Return Type: Double


math.max

Returns the largest number.

Return Type: Double