Currency Precision Sandbox

Simulate how different rounding algorithms — Banker's, Floor, Ceiling, Half-up, Truncate — affect loan balances month by month and diverge over time.

FAQ

What is Banker's rounding?

Banker's rounding (also called round-half-to-even or IEEE 754 default rounding) rounds a number that is exactly halfway between two values to the nearest even digit. For example, 2.5 rounds to 2 (even) and 3.5 rounds to 4 (even). This eliminates the statistical bias introduced by always rounding 0.5 upward.

Why does rounding mode matter for loans?

Each monthly payment calculation involves multiplying the balance by the interest rate and rounding the result. Tiny differences of one or two cents per month compound across hundreds of payments. Over a 30-year mortgage, different rounding modes can produce divergent final balances by dollars or even tens of dollars.

What does the decimal places setting do?

The decimal places setting controls the precision at which rounding is applied each month. Two decimal places simulates cent-level accounting (standard for retail banking). Higher precision reduces rounding error but may not match what real systems actually store.