Math
Provides basic constants and mathematical functions.
Methods
math.abs()
math.abs()
Returns the absolute, or non-negative value, of a given value.
math.cos()
math.cos()
Returns the cosine of the radian argument.
math.isNegative()
math.isNegative()
Determines if the specified value is negative.
math.isPositive()
math.isPositive()
Determines if the specified value is positive.
math.isZero()
math.isZero()
Determines if the specified value is zero.
math.sin()
math.sin()
Returns the sine of the radian argument.
math.tan()
math.tan()
Returns the tangent of the radian argument.
Properties
math.pi
math.pi
The mathematical constant ฯ = 3.141592โฆ, use the round()
method to round down to the desired precision.
math.e
math.e
The mathematical constant e = 2.718281โฆ, use the round()
method to round down to the desired precision.
math.epsilon
math.epsilon
The mathematical constant ๐ = 2.220446049250e-16, represents the smallest value that a float can have different from zero.
math.tau
math.tau
The mathematical constant ฯ = 6.283185โฆ, use the round()
method to round down to the desired precision.
Last updated