6 ms·
(1.005).toFixed(2) // Expected rounding to "1.01" "1.00"
by ekke 8y ago
(1.005).toFixed(2) // Expected rounding to "1.01"
"1.00"
- deleted 8y ago[deleted]
- noselasd 8y agocases like that's everywhere. 2.875.toFixed(2) = "2.88" while 2.675.toFixed(2) = "2.67" 7205759403792794 + 1.1 = 7205759403792795 7205759403792794 + 1.9 = 7205759403792796