πMath
Provides basic constants and mathematical functions.
Returns the absolute, or non-negative value, of a given value.
math.abs(-100)
// expected value: 100
Returns the cosine of the radian argument.
math.cos(math.pi / 2).round()
// expected value: 0
math.isNegative()
Determines if the specified value is negative.
math.isNegative(-100)
// expected value: true
math.isPositive()
Determines if the specified value is positive.
Determines if the specified value is zero.
Returns the sine of the radian argument.
Returns the tangent of the radian argument.
The mathematical constant Ο = 3.141592β¦, use the round() method to round down to the desired precision.
The mathematical constant e = 2.718281β¦, use the round() method to round down to the desired precision.
The mathematical constant π = 2.220446049250e-16, represents the smallest value that a float can have different from zero.
The mathematical constant Ο = 6.283185β¦, use the round() method to round down to the desired precision.