My Day✳All blog articles ↗

Check for a changed answer after double rounding

Keep the original number until the final rounding step.

Here, round positive decimals to the nearest value at the required precision, with exact halves rounded upward. Intermediate rounding can change the next step. Two successive roundings need not equal one direct rounding.

Original 2.346; through 2.35 to 2.4; directly to 2.3
Original 2.346; through 2.35 to 2.4; directly to 2.3

What to do

  1. Record the original decimal, required final precision and rule for exact halfway cases.
  2. Calculate directly from the original and separately through an intermediate rounding step.
  3. Compare results and retain the original value; round finally at the required last step.

Example

Fictional calculation: 2.346 rounds to 2.35 at hundredths, then 2.4 at tenths. Directly to tenths, 2.346 gives 2.3. The intermediate 2.35 is an exact decimal here; this is not an explanation of a calculator's binary storage.

My Day · Windows

My Day can hold both paths and the chosen rule. You check the calculation.

Buy My Day for Windows ↗