math.mininteger is a constant that is part of Lua’s
math library. The
math.mininteger constant is a constant representing the smallest value that can be possibly held by an integer.
math.minintegerconstant has the opposing functionality to the
math.maxintegerconstant which returns the highest value that can be held by an integer.
mininteger is a constant from Lua’s library
math, it is called as
To find the smallest possible integer value in Lua:
This results in something like the following output:
It can be used when assigning a variable to a very small value:
local max = math.minintegerif someValue > max thenmax = someValue