How to use
- Type the number you want to round. Commas, a minus sign and an exponent such as 1.5e3 are all fine.
- Pick the precision: a place after the decimal point (tenths, hundredths and so on), the ones place, a place before the point (tens, hundreds, lakhs, crores), or a fraction from 1/2 to 1/64. Choose Custom place to type any place from -1000 to 1000.
- Pick the rounding method. The default sends a value that sits exactly halfway away from zero; the other eight methods settle halves, or every value, in their own direction.
- Read the rounded value, the sentence that explains it, how far rounding moved the number, and the table that shows the answer of every method side by side.
Formula
Divide the number by the step (1 for the ones place, 0.01 for hundredths, 1/8 for eighths), round that quotient to a whole number, then multiply back by the step. Between two whole numbers the nearer one wins; a quotient exactly halfway is settled by the method: half away from zero, half up (toward +infinity), half down (toward -infinity), half to even, half to odd or half toward zero. Ceiling and floor always move up or down.Example
The number 1,234.5678 rounded to the nearest 0.01 is 1,234.57. Rounded up to the nearest 100 (ceiling) it is 1,300. To the nearest lakh, 12,34,567.891 becomes 12,00,000. For 2.5 to the nearest whole number, half away from zero gives 3, half to even gives 2 and half to odd gives 3.
The tool works on the exact decimal digits you type, not on binary approximations, so 1.005 rounds to 1.01 at two places, as it does on paper. Rounding to a place before the point (such as lakhs or crores) returns a number with zeros at the end, and rounding a small number to a large place can give 0. Half to even is sometimes called banker's rounding and is the default for many computer systems because it avoids a steady upward drift when many values are added.