Comment Comment by civility > JavaScript is precise for 2^53 rangeWhat does this mean to you? It's very easy to get horrible rounding error with real-life sized things. For instance document.writeln(1.0 % 0.2); The right answer is 0.0, and the most it can be wrong is 0.2. It's nearly as wrong as possible. These are real-life sized numbers.btw: I think IEEE-754 is really great, but it's also important to understand your tools. parent civility 7 years ago
What does this mean to you? It's very easy to get horrible rounding error with real-life sized things. For instance
The right answer is 0.0, and the most it can be wrong is 0.2. It's nearly as wrong as possible. These are real-life sized numbers.btw: I think IEEE-754 is really great, but it's also important to understand your tools.