2 ms·
> If this is true and if JS can only do floats, it would be bad news for many basic mathematical operations running on this chip By spec, JS only has double-pr
by thedufer 13y ago
> If this is true and if JS can only do floats, it would be bad news for many basic mathematical operations running on this chip
By spec, JS only has double-precision floats. However, since that means that 32-bit integers can be exactly represented, V8 optimizes to integer calculations unless actually using floats becomes necessary. I would guess that on this device floating point operations are done in software, but also that they rarely occur in practice.