What is Rounding error?
The error that arises when a real number is represented with a finite number of digits and a value that cannot be represented is rounded to a nearby one. 0.1 cannot be represented exactly as a binary floating-point number, so errors build up when it is added repeatedly, and adding 0.1 ten times in double precision does not give 1.0. Avoid comparing real numbers with = and counting loop iterations with real numbers.
Japanese name: 丸め誤差
Rounding error appears in 5 practice questions across 2 topics, including Computer Arithmetic, Programming Basics (Pseudocode Tracing).