math.type (x)
Returns "integer" if x is an integer, "float" if it is a float, or nil if x is not a number.
integer
x
float
Please login to continue.
Please login to continue.