Rounding during unit conversion creates inconsistencies
Aliases: conversion rounding · display precision · conversion consistency
What it is
Consistent conversion rounding means that every unit, view, and operation derives from the same underlying measurement, authoritative conversion factor, and explicit precision policy, with rounding deferred to final presentation or a defined decision boundary. Rounding is not cosmetic decimal cleanup. Premature rounding, round-trip conversion, or per-component truncation can make a list, detail view, chart, export, and validator disagree about one quantity.
Why it happens
Conversion changes a quantity's numerical representation through a unit ratio without changing the physical quantity. NIST guidance favors exact conversion factors where available, retaining digits during calculation, and rounding the final result only once. Display precision should also reflect the uncertainty or significant digits of the source measurement. Converting an already rounded inch value back to centimetres, or rounding interval endpoints before calculating a span, accumulates error. Near a threshold, equivalent presentations can even fall on opposite sides of a rule. Binary floating-point, different tie-breaking modes across runtimes, and affine conversions such as Celsius–Fahrenheit add more opportunities for components to diverge.
Studying it
Establish high-precision canonical quantities and conversion factors as an oracle, then generate cases covering zero, negatives, extremes, exact half increments, both sides of thresholds, interval endpoints, and repeated unit changes. Compare presentation and decisions across clients, services, exports, and analysis pipelines. Outcomes should include not only last-digit differences but reordered items, changed threshold classifications, total drift, and users' judgments about which value is authoritative. Task studies can also test whether excess decimals imply false accuracy and whether paired-unit displays are understood as equivalent representations rather than separate readings.
Where it stops holding
No universal decimal-place count works for every quantity. Instrument resolution, analytical purpose, commercial rules, and professional convention all change appropriate precision; exact counts do not carry measurement uncertainty in the same way. Maximums, minimums, tolerances, and regulated limits must not be rounded to nearest when that would relax the original boundary; direction must preserve the intended constraint. A mental-math approximation should be labelled as approximate, must not overwrite the canonical value, and is unsuitable for consequential calculation.
Applying it
- Maintain authoritative conversion factors, calculation precision, and rounding modes in one service or shared library. Components request a display derived from the canonical quantity rather than chaining formatted values.
- Convert, aggregate, compare, and evaluate thresholds with the unrounded canonical value, then format for the field's purpose and source precision. Never overwrite source data after a unit round trip.
- Give lists, details, charts, notifications, print, and exports one precision policy. Derive both sides of a dual-unit display independently from the same canonical value, with compatible rules for ranges, totals, and derived measures.
- Run cross-platform property tests over factors, ties, both sides of thresholds, directed rounding for bounds, negatives, and temperature offsets; then use snapshots to verify that one record is numerically consistent at every touchpoint.
Related
- Same group: S2.04.1 Length, weight, and temperature use different measurement conventions · S2.04.3 Users need to be able to switch units · S2.04.4 A missing unit is a safety hazard, not a typography issue
- Adjacent: S2.02.3 Negative-number notation varies · S2.03.2 Decimal precision varies by currency
- Search terms:
conversion rounding·significant digits·round once