Floating Point Errors

 

Excel stores and calculates floating point numbers. Sometimes, the result of a formula is a very close approximation.

1. For example, take a look at the formulas below. At first glance, everything looks alright.

Formula Results

2. However, if we show 16 decimal places, we can see that one result is a very close approximation.

Floating Point Error in Excel

You don't have to worry about floating point errors. They are rare. Even if your worksheet contains a floating point error, in most cases, this causes no problems.

3. However, if you compare the value in cell C8 with another value, this can happen.

If Function

4. Use the ROUND function to fix this.

Round Function