Are Underlying Values or Displayed Values Used in Calculations?
Calculate the discrepancy between results using precise underlying data versus visually rounded displayed values to ensure financial and mathematical integrity.
Visual Impact: Underlying vs. Displayed Totals
Green: Underlying Path | Red: Displayed Path
| Parameter | Underlying (Precise) | Displayed (Formatted) | Variance |
|---|
Caption: Comparison of how rounding changes the outcome over multiple iterations.
What is the calculation difference between Underlying Values and Displayed Values?
In data analysis, particularly within software like Microsoft Excel or specialized financial systems, a common question arises: are underlying values or displayed values used in calculations? By default, most systems maintain high-precision “underlying values” in their memory while showing a simplified “displayed value” to the user for readability.
An underlying value is the raw number stored in the database or cell (e.g., 10.456789). A displayed value is the visually truncated version (e.g., 10.46). If the software uses the underlying value for subsequent math, your results stay precise. However, if the system is set to “precision as displayed,” every calculation is performed using the rounded number, leading to significant cumulative errors.
Misconceptions often lead users to believe that what they see on the screen is what the computer “thinks.” This is rarely the case unless specific settings are toggled. In accounting, this can lead to balance sheets that are off by several cents or even dollars across thousands of transactions.
The Mathematical Explanation of Precision Variance
The discrepancy between underlying and displayed calculations is calculated using the variance between the true float and the rounded string or decimal representation. The core question of are underlying values or displayed values used in calculations boils down to the following logic:
Discrepancy Formula: Variance = (V_u * N) - (V_d * N)
- V_u (Underlying Value): The raw number with full floating-point precision.
- V_d (Displayed Value): The value rounded to k decimal places.
- N (Iterations): The number of times the value is added or the scale of the operation.
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| V_u | Underlying Data | Real Number | Unlimited |
| V_d | Displayed/Formatted | Rounded Number | 0 to 10 decimals |
| N | Sample Size/Multiplier | Integer | 1 to 1,000,000+ |
Practical Examples of Calculation Discrepancies
Example 1: Sales Tax Accumulation
Imagine a retail store processing 10,000 transactions. A single tax calculation results in 1.2456. The underlying value used for the daily total is 1.2456, but the customer only sees and pays a displayed value of 1.25. If the store calculates its total tax liability based on the underlying value (12,456.00) but collects based on the displayed value (12,500.00), there is a $44.00 discrepancy. Understanding are underlying values or displayed values used in calculations is vital for tax compliance.
Example 2: Engineering Tolerances
A machine part requires a thickness of 0.1234mm. On the digital display, the operator sees 0.12mm. If a sequence of 50 parts is measured and the computer sums the displayed values (0.12 * 50 = 6.00mm) instead of the underlying values (0.1234 * 50 = 6.17mm), the assembly will fail due to a 0.17mm error. This illustrates why knowing if are underlying values or displayed values used in calculations is critical for manufacturing.
How to Use This Precision Discrepancy Calculator
- Input the Underlying Value: Enter the most precise version of the number you are working with.
- Set Display Decimals: Adjust the slider or input to match the number of decimals shown in your spreadsheet or report.
- Enter Multiplier: Input how many items or iterations this calculation represents (e.g., total sales, number of units).
- Analyze the Discrepancy: Look at the highlighted “Total Calculation Discrepancy” to see how much error has accumulated.
- Review the Chart: The SVG chart visually demonstrates the divergence between the precise path and the rounded path.
Key Factors That Affect Calculation Results
Several technical and procedural factors determine whether are underlying values or displayed values used in calculations and how they impact your data:
- System Settings: In Excel, the “Set precision as displayed” option permanently changes underlying values to match formatting.
- Floating Point Math: Computers store numbers in binary, which can create tiny underlying variances (like 0.1 + 0.2 = 0.30000000000000004).
- Rounding Methods: “Round half up” vs. “Banker’s rounding” (round to even) changes the V_d significantly.
- Data Type: ‘Decimal’ types in programming are more precise for financial math than ‘Double’ or ‘Float’.
- Number of Iterations: Small rounding errors are negligible in one-off math but catastrophic in large-scale datasets.
- Significant Figures: Scientific contexts require keeping track of precision to ensure the final result doesn’t imply more accuracy than the measurement allows.
Frequently Asked Questions (FAQ)
1. Does Excel use the underlying or displayed value by default?
Excel uses the underlying value (up to 15 digits of precision) for all calculations by default, regardless of how the cell is formatted.
2. When should I use “Precision as Displayed”?
This should only be used when you need your reports to “foot” (add up) exactly as they appear on paper, often in final financial audits where penny-differences are confusing to readers.
3. Why does my sum not match my individual rows?
This happens because the sum is adding the underlying values, while the rows are showing rounded displayed values. This is a clear sign that are underlying values or displayed values used in calculations is a factor in your report.
4. Does rounding affect data integrity?
Yes, repeatedly rounding intermediate steps in a calculation can lead to “rounding drift,” where the final result is mathematically incorrect.
5. Is 0.5 rounded up or down?
It depends on the system. Standard math rounds 0.5 up to 1, while Banker’s rounding rounds 0.5 to the nearest even number (0) to reduce cumulative bias.
6. How do I fix rounding errors in financial software?
Always use ‘Decimal’ data types rather than ‘Float’ and perform rounding only at the very final step of the calculation.
7. Can I recover underlying data once ‘Set Precision as Displayed’ is on?
No. In most software, this operation is destructive and permanently truncates the data to the current display format.
8. What is the difference between formatting and rounding?
Formatting changes what you see (Display); rounding (via functions like ROUND()) changes the data itself (Underlying).
Related Tools and Internal Resources
- Rounding Error Calculator – Deep dive into different rounding algorithms.
- Significant Figures Calculator – Ensure your scientific measurements remain valid.
- Excel Precision Guide – How to manage “Precision as Displayed” settings.
- Financial Accuracy Tool – Auditing multi-currency transaction discrepancies.
- Floating Point Math Explained – Why computers sometimes get 1+1 wrong.
- Data Integrity Checker – Tools for verifying large dataset precision.