Content deleted Content added
Quamaretto (talk | contribs) Creating inheritance manually does not belong here, esp. since this is a 'syntax' article. |
m →Numbers |
||
Line 16:
Numbers in JavaScript are represented in binary as IEEE-754 Doubles, which provides an accuracy to about 14 or 15 significant digits [http://www.jibbering.com/faq/#FAQ4_7 JavaScript FAQ 4.7]. Because they are binary numbers, they do not always exactly represent decimal numbers, particularly fractions.
This becomes an issue when formatting numbers for output, which
alert(0.94 - 0.01) // displays 0.9299999999999999
|