Lua provides some standard constants. These constants include of the value for PI (positive infinity), the largest number an integer can hold, and the smallest number an integer can hold:
math.pi: the value of pi
math.huge: represents positive infinity
math.mininteger: represents the smallest integer (non-decimal) number
math.maxinteger: represents the largest integer (non-decimal) number
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.