5 ms·
Wouldn't that have more to do with the fact that javascript uses floats for everything? It's probably exceeding precision at a guess.
by mrcharles 17y ago
Wouldn't that have more to do with the fact that javascript uses floats for everything? It's probably exceeding precision at a guess.
- malkia 17y agoIs it? I thought Javascript has integer type. Say for example Lua (by default) is configured to use only double. It can be configured to use single-float, or even integer - but only one numeric type.
- pmjordan 17y agoStandard JavaScript uses doubles everywhere. They get casted to 32-bit signed integers for bitwise operations, the results are casted back. It's a little odd, but consistent at least.
- mrcharles 17y agoAh. I don't know the inner workings of Javascript so I'm not surprised I was wrong. Just at a glance, that problem to me screams floating point limitation.