lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


"you can use integral floating point values whenever an integer is required"

and the converse

"you can use an integer whenever a floating point value is required"

hold in Lua 5.3, *provided* the implied conversion can be made without loss.

This seems clear to me. But it does bring up the limits of the underlying
representation of numbers.

(Not that there is any place in Lua where a floating point value is *required*.)