HOW IT WORKS
Exact base-10 rounding & tie-breaking rules
Standard computer floating-point numbers represent decimals in binary, which can turn 1.005 into 1.00499999999999989 and round it the wrong way. This calculator parses your input as exact base-10 digits using BigInt so halfway ties are always exact.
Half up vs. half away from zero
For positive numbers both modes round .5 up. For negative numbers, half up rounds ties toward +∞ (−2.5 → −2), whereas half away from zero rounds ties outward (−2.5 → −3).
Half to even (Banker's rounding)
The IEEE 754 default: exact .5 ties round to whichever neighboring digit is even, eliminating upward bias across large datasets:
2.5 → 2, 3.5 → 4Ceiling & floor
Ceiling rounds any non-zero remainder toward +∞; floor rounds any non-zero remainder toward −∞.