Math Functions
PantherFlow math functions
math.abs()
math.abs()
math.abs(value: number) -> number
Returns the absolute value of a numeric expression.
Example:
math.ceil()
math.ceil()
math.ceil(value: number [, precision: int]) -> number
Returns the value
rounded up to the specified precision
number of decimal places.
Example:
math.floor()
math.floor()
math.floor(value: number [, precision: int]) -> number
Returns the value
rounded down to the specified precision
number of decimal places.
Example:
math.round()
math.round()
math.round(value: number [, precision: int]) -> float
Returns the value rounded to the specified precision.
Example:
Last updated
Was this helpful?