3 ms·
I would say ever so slightly less. Lua has the identical problem to JS, in that you get 53 bits of precision (now 64 with Lua >= 5.3). However, Lua has operat
by samatman 7y ago
I would say ever so slightly less.
Lua has the identical problem to JS, in that you get 53 bits of precision (now 64 with Lua >= 5.3).
However, Lua has operator overloading, so it's practical to import an infinite-precision integer library, define the operators, and then use ordinary arithmetic from there, with correct results.
I would prefer a proper built-in numeric tower, but I'm in the minority there; Lua is a minimalist language and generally doesn't add things to the core which can be written as extensions.