In Lua, the
math.maxinteger is a constant that is part of the Lua
math library. The
math.maxinteger constant is used to return the largest possible integer value.
math.maxintegerconstant is only available in Lua 5.3 and above. For earlier versions of Lua, the
math.hugeconstant is available instead.
maxinteger is a part of the standard Lua
math library, it must be called as
To find the largest possible integer value in Lua:
This results in something like the following output:
- Anonymous contributorAnonymous contributor1 total contribution
- Anonymous contributor