Content deleted Content added
→Number: IEEE754 is not *that* bad at math. 0.94-0.01 = 0.9299999999999999 |
|||
Line 213:
<syntaxhighlight lang="javascript">
console.log(0.2 + 0.1 == 0.3); // displays true as per ECMASCRIPT 6 Specifications
console.log(0.94 - 0.01); // displays 0.
</syntaxhighlight>
|