Rounding Calculator
Rounds a number to a chosen place value (thousands, tens, a whole number, tenths, hundredths and so on), to a number of significant figures, or to the nearest fraction such as a quarter or a sixteenth. Ten rounding rules are available, from everyday half up and banker's rounding (half to even) to ceiling, floor and truncation, and a comparison table shows what each rule gives for your number. Arithmetic is exact, so 2.675 rounds to 2.68, not 2.67 as some software gives.
- Input is an exact decimal of up to 40 significant digits.
Formula
rounded = increment × round(x ÷ increment), where the increment is 10⁻ᵈ for d decimal places, 10^(e − s + 1) for s significant figures, or 1/n for the nearest 1/n
- Half rules only matter for an exact tie, a number exactly halfway between two candidates such as 2.5 or −0.125 to 2 places. Otherwise every half rule rounds to the nearer candidate.
- Half up sends ties away from 0 (2.5 → 3, −2.5 → −3), the rule taught at school; half down sends them toward 0. Half ceil sends ties toward +∞ (−2.5 → −2) and half floor toward −∞.
- Half to even (banker's rounding, IEEE 754 default) sends ties to the even neighbour (2.5 → 2, 3.5 → 4), so repeated rounding does not drift upward.
- Up, down, ceil and floor ignore the halfway point: up rounds away from 0, down toward 0 (truncation), ceil toward +∞ and floor toward −∞.
- The number is handled as an exact decimal, never as binary floating point, so 2.675 to 2 places is 2.68 (half up), whereas many spreadsheets give 2.67.
- Significant figures count from the first non-zero digit: 0.004567 to 2 significant figures is 0.0046. The result keeps trailing zeros that are significant (9.996 to 3 s.f. is 10.0).
2.675 to 2 decimal places
Inputs
- Number to round: 2.675
- Round to: places
- Place: 2
- Significant figures: 3
- Nearest: 4
- Rounding rule: halfUp
The digit after the hundredths is 5, an exact tie, so half up gives 2.68 (+0.005). Half to even would give 2.68 too, because 8 is even; truncation gives 2.67.
Sources & references
Frequently asked questions
How do you round to the nearest hundredth?
Look at the thousandths digit. If it is 5 or more, add one to the hundredths digit; otherwise leave it, and drop the rest. 3.14159 → 3.14; 2.718 → 2.72.
What is banker's rounding?
Rounding halves to the nearest even digit: 0.5 → 0, 1.5 → 2, 2.5 → 2. It balances rounding up and down across many values, so it is used in accounting, statistics and IEEE 754 arithmetic.
How do I round to significant figures?
Start counting at the first non-zero digit, keep the required number of digits and round the last one. 123,456 to 3 s.f. is 123,000; 0.0012345 to 3 s.f. is 0.00123.
How do I round to the nearest quarter?
Choose the nearest 1/4. 2.38 is closer to 2.5 (2 1/2) than 2.25 (2 1/4), so it rounds to 2 1/2. This is handy for measurements in inches and prices in quarters.
Why does Excel round 2.675 to 2.67?
Because 2.675 cannot be stored exactly in binary; it is held as 2.67499999…, which rounds down. This calculator works with exact decimals and rounds it up to 2.68.
Related calculators
Scientific Notation Calculator Converts a number to scientific notation (a × 10ⁿ with 1 ≤ |a| < 10), e notation (3.2e5) and engineering notation with its SI prefix, and back to an ordinary decimal. Enter a plain decimal such as 0.000452 or 93,000,000, or a number already in scientific form such as 6.022e23 or 3*10^4, and optionally round the coefficient to a number of significant figures. Long Division Calculator Divides one whole number by another and shows the long division step by step, the way it is taught at school: bring down a digit, see how many times the divisor goes in, multiply, subtract and carry the remainder. You get the quotient and remainder, the answer as a mixed number, and the exact decimal, with any repeating digits marked in brackets. Fraction Calculator Adds, subtracts, multiplies and divides two fractions, simplifies a fraction to lowest terms, and converts between fractions and decimals. Fractions can be entered as simple fractions (7/4) or as mixed numbers (1 3/4). Every answer is reduced to lowest terms and also given as a mixed number, an exact decimal with any repeating digits marked, and a decimal rounded to six places, together with the working: the common denominator for addition and subtraction or the reciprocal for division. Percentage Increase Calculator Works out how much a value has grown or shrunk in percentage terms. Give the starting and ending values to get the percentage increase (or decrease) and the difference between them, or work backwards: find the new value after a given percentage rise or fall, find the original value before a change, or recover both values from the percentage and the size of the change. Results show the change both as an increase and as the equivalent decrease, so a fall of 10% reads as an increase of −10%.