Calculation Issues

Fix Excel Floating-Point Errors Like -2.22045E-15

Steve KSteve K Nov 18, 2026 870 views

Question details

The user wants to correct a tiny nonzero result produced when adding decimal numbers in Excel.

Fix Excel Floating-Point Errors Like -2.22045E-15
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the result cell

Click the cell containing the sum and select its formula in the formula bar.

2
Wrap the formula in ROUND

Replace the formula with =ROUND(SUM(A1:A5),2), adjusting the range and number of decimal places to suit your data.

3
Apply and check

Press Enter and check that the result is zero when the residual is insignificant at the chosen precision.

Round the Excel formula to the required precision
Choose precision carefully: ROUND changes the calculated result at the specified precision, so it can also remove meaningful digits if you choose too few decimal places.
Calculate with WPS Spreadsheets

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. 1. Open the workbook: Launch WPS Office, open Spreadsheets, and use Open to select your Excel workbook.
  2. 2. Select the formula: Click the cell with the tiny result and select its formula in the formula bar.
  3. 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. 4. Check and save: Press Enter to check the result, then select Save to keep the updated formula.
Round floating-point residuals to the required number of decimal placesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and controlsWork with a free, easy-to-use office suite
microsoft office alternative - wps office

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.