IEEE 754 floating point math
问题 What is the risk of precision loss associated with maths like the following when using IEEE754 floating point numbers (in JavaScript)? 10*.1 i.e. integers multiplied by a rational number. 回答1: Note: The question was edited to add "that is a divisor of" long after this answer was posted, see below the fold for an update. What is the risk of precision loss... It's virtually guaranteed , depending on the integer and floating point number involved, because of the mismatch between what we use