2 ms·
Aside from rounding I have 2 reasons to not use them where (financial) precision is necessary: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refere
by gdm85 7y ago
Aside from rounding I have 2 reasons to not use them where (financial) precision is necessary:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... (it's the same in other languages)
- if results are not exactly reversible then you cannot implement verification and that hinders defensive programming