3 ms·
Previously, all Lua numbers were doubles. You could fit a 32-bit int into a double without trouble, and maybe the interpreter would even have an optimization fo
by eslaught 12y ago
Previously, all Lua numbers were doubles. You could fit a 32-bit int into a double without trouble, and maybe the interpreter would even have an optimization for that internally, but at least conceptually, Lua never distinguished between floating point and integer values (e.g. type(1.4) and type(4) would both produce "number").