Fix Excel Floating-Point Errors Like -2.22045E-15
Question details
The user wants to correct a tiny nonzero result produced when adding decimal numbers in Excel.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Adding decimal values that are expected to sum to zero.
- Observed behavior
- Excel returns a very small value such as -2.22045E-15 instead of zero.
Identify the formula that produces the small result and decide how many decimal places your calculation requires. For example, use two decimal places for a sum that needs cent-level precision.
Round the Excel formula to the required precision
Use ROUND when the calculated result itself should be rounded, including for later calculations or comparisons.
Some decimal values cannot be represented exactly in binary floating-point arithmetic, so calculations can leave a tiny residual. The notation -2.22045E-15 represents a number very close to zero.
Click the cell containing the sum and select its formula in the formula bar.
Replace the formula with =ROUND(SUM(A1:A5),2), adjusting the range and number of decimal places to suit your data.
Press Enter and check that the result is zero when the residual is insignificant at the chosen precision.

Format the Excel result to show fewer decimal places
Use number formatting when you only need to simplify the displayed result and want to leave the underlying value unchanged.
Round Tiny Calculation Results in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use ROUND around a sum to produce a result at the precision you need.
- 1. Open the workbook: Launch WPS Office, open Spreadsheets, and use Open to select your Excel workbook.
- 2. Select the formula: Click the cell with the tiny result and select its formula in the formula bar.
- 3. Round the sum: Enter =ROUND(SUM(A1:A5),2), replacing the range and decimal-place count with the values needed for your calculation.
- 4. Check and save: Press Enter to check the result, then select Save to keep the updated formula.

Frequently Asked Questions
Why does Excel show -2.22045E-15 instead of zero?
Excel uses binary floating-point arithmetic, which cannot represent some decimal values exactly. A calculation can therefore leave a tiny residual, displayed in scientific notation.
How do I make the formula return zero at two decimal places?
Wrap the calculation in ROUND, for example =ROUND(SUM(A1:A5),2). A residual smaller than the rounding threshold will then return zero at that precision.
Does changing the number format remove the error?
No. Select the cell and use Home > Number Format to change how many decimals appear, but the underlying value remains unchanged. Use ROUND if later calculations need the rounded value.
Can a tiny residual affect an equality test?
Yes. A formula that tests whether the unrounded result equals zero may return FALSE. Round the result to an appropriate precision before comparing it, for example =ROUND(SUM(A1:A5),2)=0.




