The number type is inhabited by real numeric values. Specifically, it has 53 bits of precision, meaning it can accurately represent integral values in the interval , outside of which arithmetic operations will gradually lose precision. This is because the number type is implemented using double-precision floating-point numbers.
inf, which stands for infinity, is the largest number Lua can represent. It can be obtained by the use of math.huge or
1/0. There also exists -inf, obtained by negating another inf value.