How to Fix Excel Returning a Tiny Residual When Subtracting to Zero
Question details
Users experience a microscopic non-zero decimal residual (e.g., 0.00000000000000006938894) when subtracting decimal values in Excel that mathematically should equal exactly zero.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating the difference between multiple decimal numbers where the expected result is zero.
- Observed behavior
- Excel returns a microscopic residual number instead of zero due to binary floating-point calculation errors.
Determine the exact number of decimal places relevant to your data (e.g., 2 decimal places for standard currency) before applying rounding functions to fix the residual.
Use the ROUND Function to Eliminate Floating-Point Errors
The most reliable way to handle tiny residual errors is by explicitly rounding your calculation to the required number of decimal places.
Excel stores numbers in binary floating-point format, meaning some decimal fractions cannot be represented exactly. This inherently introduces microscopic errors during calculations.
By wrapping your subtraction formula in the ROUND function, you force Excel to drop these tiny residual anomalies and return a true zero.
Click on the cell where you want the subtraction result to appear.
Type the ROUND function, wrapping your subtraction and specifying the desired decimal places. For example, type =ROUND(A3-A4-A5, 2).
Press Enter to apply the formula. The result will now calculate as an exact zero rather than leaving a residual decimal.

Format Cells to Visually Hide the Residual Error
If you only need the spreadsheet to look clean for visual reporting and don't require an exact mathematical zero for downstream formulas, changing the number format will hide the residual.
Easily Manage Spreadsheets and Formulas with WPS Office
WPS Office offers a powerful, fully compatible spreadsheet application that handles complex formulas and data formatting with ease. You can seamlessly apply ROUND functions and manage numerical precision just like in Microsoft Excel.
- 1. Open your file: Launch WPS Spreadsheets and open your data document.
- 2. Initiate the formula: Click on the target cell and type =ROUND( to begin your calculation.
- 3. Select your values: Input or click the cells you wish to subtract (e.g., A1-A2).
- 4. Set the precision: Add a comma, type the number of decimal places you need, and close the parenthesis (e.g., ,2)).
- 5. Complete the calculation: Press Enter to get your precise calculation without floating-point residual errors.

Frequently Asked Questions
Why does Excel show a number with an 'E' at the end instead of zero?
This is scientific notation (e.g., -1.42E-14), which Excel uses to display extremely small residual numbers caused by binary floating-point calculation limits. Using the ROUND function will convert this tiny number back to a true zero.
Will the EXACT function recognize this tiny residual as zero?
No, the EXACT function compares the exact stored values in the cell's memory. Because floating-point errors mean the stored value is microscopically larger or smaller than exactly zero, EXACT will return FALSE. You must round the calculated value first.
Does 'Set precision as displayed' fix floating-point errors safely?
While it forces Excel to calculate based solely on the visible format of the cell, it is highly discouraged for fixing tiny residuals. It permanently changes all constant values in your workbook to their displayed precision, which can cause irreversible data accuracy loss.




