LA IDEA ÚTIL

Conserva valores completos, precisión y momento de redondeo. Sumar importes ya redondeados y redondear su suma exacta son operaciones que pueden producir resultados distintos.

Declara una regla para el ejercicio

Usamos unidades monetarias ficticias y mostramos dos decimales. Para estos importes positivos, redondeamos al valor más cercano y, cuando hay empate exacto, hacia arriba. Por ejemplo, 20,125 pasa a 20,13. La documentación de Decimal denomina ROUND_HALF_UP al criterio de desempate que se aleja de cero.

Es una regla declarada para reconstruir el ejemplo, no una norma fiscal ni un requisito universal de facturación. Una cotización real debe utilizar la precisión y el procedimiento aplicables a su acuerdo y sistema. Aquí no calculamos impuestos, comisiones ni ajustes de cobro.

Suma tres líneas redondeadas

Los importes exactos de las tres líneas, después de sus respectivos cálculos, son 20,125; 30,125 y 40,125. Con la regla elegida, se presentan como 20,13; 30,13 y 40,13. Si el procedimiento define primero el importe redondeado de cada línea y luego los suma, el total es 90,39.

Conserva ambos campos: importe exacto de cálculo e importe de línea utilizado para sumar. Si solo guardas los valores a dos decimales, después no podrás reconstruir qué información había antes de ese paso. No cambies el precio original para explicar una diferencia que apareció al redondear.

Repite la cuenta redondeando una sola vez

La suma exacta es 20,125 + 30,125 + 40,125 = 90,375. Si el procedimiento suma esos valores completos y redondea únicamente el total a dos decimales, obtiene 90,38. La diferencia respecto a 90,39 es 0,01, aunque no haya cambiado ningún importe de entrada.

Ambos recorridos siguen la misma regla de redondeo, pero la aplican en momentos distintos. El ejemplo muestra esa diferencia aritmética; no decide cuál debe contratarse. Para conciliar dos documentos, identifica qué recorrido usa cada uno antes de atribuir el centavo a un error de captura.

Distingue mostrar decimales de cambiar un valor

Una herramienta puede mostrar 20,13 mientras conserva 20,125 para el siguiente cálculo. Ver dos decimales en pantalla no basta para saber qué se sumó. Revisa la fórmula, el valor conservado y la configuración pertinente; si existe una función de redondeo, identifica dónde se aplica.

Microsoft describe ROUND como una función que redondea a un número determinado de dígitos. Es una referencia para comprobar una hoja, no evidencia de que una cotización concreta la utilice. Nuestro ejemplo emplea valores decimales exactos; no afirmamos haber inspeccionado la hoja o el sistema de un cliente.

Acuerda cómo se comprobará el documento

La ficha de conciliación puede guardar tres importes completos, tres importes redondeados, suma exacta, total por cada recorrido y diferencia. Añade la regla de desempate, precisión y procedimiento aprobado. Así otra persona puede reproducir el resultado sin adivinar qué había detrás de la cifra visible.

Si el acuerdo exige sumar líneas ya redondeadas, comprueba esa suma. Si exige redondear al final, conserva los cálculos completos. Cambiar retroactivamente de criterio para eliminar un centavo impide seguir la cotización. La revisión útil explica la diferencia y aplica el procedimiento correspondiente de manera consistente.

COMPLETE ENGLISH TRANSLATION

Round each line or round the total: where that cent comes from

Two versions of a quote differ by 0.01. Prices and quantities appear identical. The difference may lie in when rounding occurred, so altering a line merely to make them match would conceal the calculation.

Open the English edition ↗

Keep full values, precision and the rounding point. Adding already rounded amounts and rounding their exact sum can produce different results.

State a rule for the exercise

We use fictional currency units displayed to two decimal places. For these positive amounts, round to the nearest value, resolving exact ties upward. For example, 20.125 becomes 20.13. Decimal's documentation calls the tie-away-from-zero criterion ROUND_HALF_UP.

This is a stated rule for reconstructing the example, rather than a tax rule or universal invoicing requirement. An actual quote must use the precision and procedure applicable to its agreement and system. We calculate no taxes, fees or collection adjustments here.

Add three rounded lines

The exact amounts of the three lines, after their respective calculations, are 20.125, 30.125 and 40.125. Under the chosen rule, they become 20.13, 30.13 and 40.13. If the procedure first defines each rounded line amount and then adds them, the total is 90.39.

Keep both fields: exact calculation amount and line amount used in the sum. Retaining only two-decimal values prevents reconstructing the information that existed before that step. Do not change the original price to explain a difference introduced by rounding.

Repeat the calculation with one final rounding

The exact sum is 20.125 + 30.125 + 40.125 = 90.375. If the procedure adds those full values and rounds only the total to two decimals, the result is 90.38. It differs from 90.39 by 0.01, although no input amount changed.

Both paths follow the same rounding rule but apply it at different moments. The example demonstrates that arithmetic distinction, rather than choosing which one should be agreed. Identify each document's path before attributing the cent to a data-entry error.

Distinguish displaying decimals from changing a value

A tool can display 20.13 while retaining 20.125 for its next calculation. Seeing two decimals on screen is insufficient to determine what was added. Inspect the formula, retained value and relevant setting; if a rounding function exists, identify where it applies.

Microsoft describes ROUND as rounding to a specified number of digits. That is a reference for checking a spreadsheet, rather than evidence that a particular quote uses it. Our example uses exact decimal values; we do not claim to have inspected a customer's spreadsheet or system.

Agree how the document will be checked

A reconciliation record can retain three full amounts, three rounded amounts, the exact sum, each path's total and the difference. Add tie-breaking rule, precision and approved procedure. Another person can then reproduce the result without guessing what lay behind the visible figure.

If the agreement requires adding already rounded lines, check that sum. If it requires rounding at the end, retain full calculations. Retrospectively switching criteria to eliminate a cent makes the quote harder to trace. A useful review explains the difference and applies the corresponding procedure consistently.

完整中文翻译

每行先舍入,还是合计后舍入:这一分钱从哪里来

两版报价相差 0.01,价格和数量看起来却一样。差异可能出在舍入时点;仅为凑齐总额而修改某一行,会掩盖计算过程。

打开中文独立页面 ↗

保留完整数值、精度及舍入时点。把已舍入金额相加,与先求精确和再舍入,可能产生不同结果。

为练习声明规则

这里使用虚构货币单位,展示两位小数。对本例正数,取最近值,恰好居中时向上取。例如 20.125 变成 20.13。Decimal 文档将中点远离零的规则称为 ROUND_HALF_UP。

这只是重建案例所采用的明确规则,不是税务规则,也不是所有发票的统一要求。真实报价应使用适用于其约定和系统的精度及程序。本例不计算税费、手续费或收款调整。

将三条已舍入明细相加

三行经过各自计算后的精确金额为 20.125、30.125、40.125。按所选规则,分别变成 20.13、30.13、40.13。如果程序先确定每行舍入金额,再相加,总额就是 90.39。

应同时保留精确计算金额,以及实际参加求和的明细金额。如果只保留两位小数,就无法重建该步骤之前的信息。不要修改原价,来解释舍入过程造成的差异。

只在最后舍入一次

精确和为 20.125 + 30.125 + 40.125 = 90.375。如果程序先相加完整数值,只将最终总额舍入到两位小数,就得到 90.38。它与 90.39 相差 0.01,但输入金额并未改变。

两条路径使用相同规则,只是应用时点不同。案例说明这种算术区别,不替双方决定应约定哪一种。核对两份文件前,先确定各自路径,再判断是否存在录入错误。

区分显示小数与改变数值

工具可以显示 20.13,却保留 20.125 用于下一步计算。屏幕上看到两位小数,不足以确定实际相加的是什么。应检查公式、保留值及有关设置;若使用舍入函数,就确认它作用在哪一步。

Microsoft 将 ROUND 描述为把数值舍入到指定的位数。这是检查电子表格的参考,不证明某份具体报价使用了该函数。本例使用精确十进制数,没有声称检查过客户的表格或系统。

约定如何核对文件

核对记录可以保留三个完整金额、三个舍入金额、精确和、两种路径总额及差额,再写明中点处理规则、精度和批准程序。其他人便能重现结果,不必猜测可见金额背后的数值。

若约定要求相加已舍入明细,就核对该和;若要求最后舍入,就保留完整计算。为了消除一分钱而事后更换口径,会使报价难以追溯。有用的检查应解释差异,并一致应用相应程序。

FUENTES Y NOTAS EDITORIALES

Fuentes y método

  1. Microsoft: ROUND function ↗
  2. Python: Decimal rounding modes, ROUND_HALF_UP ↗

Fuentes consultadas el 30 de noviembre de 2026. Los casos y datos numéricos de los ejercicios son ficticios. Editorial standards · Disclosures.