3 ms·
IEEE 754 double precision floats have enough precision to represent every 32 bit integer, the problem is when you try to use them to represent 64 bit integers,
by Franciscouzo 9y ago
IEEE 754 double precision floats have enough precision to represent every 32 bit integer, the problem is when you try to use them to represent 64 bit integers, you get problems such as this: https://github.com/nodejs/node/issues/12115 https://github.com/nodejs/node/issues/12115
- bpicolo 9y agoMy question is: what happens when you pass something that's not an integer to the rust lib code via this?
- hackcasual 9y agoJavaScript also has somewhat arcane rules around when Number it's actually treated like an i32