|
> The only thing I found that appears to be missing is the ability toOne shouldn't need to do this but you can do it as follows:
> determine the actual type of the number.
function isinteger(x)
return tonumber(tostring(x),10)~=nil
end
tostring does this already.
> It would be nice if there was a method to do so in Lua itself. One use
> case is for serializing integer values to disk in text form properly.