Lua Math Library
This section is more of a reference to how to use the math library in Lua. We aren’t going to go too into depth for each function. The math library can be divided up into several different classes of functions. We have rounding, trigonometrical, etc.
Math Constants
Constant | Description |
---|---|
math.huge | Infinity |
math.maxinteger | The biggest integer |
math.mininteger | The smallest integer |
math.pi | A constant for Pi |
Math Functions
Conversion and Rounding
Function | Description |
---|---|
math.abs( |