When dealing with real numbers computers use floating point arithmetic. A floating point real number is represented as a set of bits. These bits can then be manipulated with the use of some arithmetic to mimic arithmetic operations done with real numbers. Unfortunately, floating point math creates the potential for introducing inaccuracies in calculations. For more detailed information regarding these inaccuracies see:
To minimize erroneous or invalid real number data in your 4D applications, use the Round and/or Trunc commands to specify how many significant digits your real number data will use.
Documentation for the Round command:
Documentation for the Trunc command:
Comparing real numbers to 'n' significant digits.
Set Real Comparison Level