6 ms·
> Lua uses 64-bit double floats for everything Not true in Lua >= 5.3. 64-bit signed integers are included in the number type now. And there is a math.ult func
by mjmas 2mo ago
> Lua uses 64-bit double floats for everything
Not true in Lua >= 5.3. 64-bit signed integers are included in the number type now. And there is a math.ult function for treating them as unsigned.
And so 0x7fffffffffffffff is representable properly.
- lexicality 2mo agothis is true but basically everyone uses LuaJIT these days
- inigyou 2mo agoPinned several language versions ago? No they don't.
- deleted 2mo ago[deleted]
- spacechild1 2mo agoCitation needed. You only need LuaJIT if performance is very important, which is not the case for many scripting purposes. I personally use Lua 5.3.
- HappMacDonald 2mo agoWell, I use PICO-8 LUA. Where are my double-precision floats and 64bit integers at? XD