Avrundningberegner
Round any number to a specified number of decimal places. Choose standard, ceiling, or floor rounding.
Sådan bruges denne lommeregner
- Indtast Number
- Indtast Decimal Places
- Klik på knappen Beregn
- Læs resultatet vist under lommeregneren
How Rounding Works
Rounding is the process of replacing a number with a nearby simpler number while keeping its value close to the original. The most common rule is round half up (the standard taught in schools): if the digit to be dropped is exactly 5, round up. For example, 2.35 rounded to 1 decimal place is 2.4.
The general rule: look at the digit immediately to the right of your rounding position. If it's 0-4, round down (truncate). If it's 5-9, round up. Example: round 3.14159 to 2 decimal places → look at the third decimal (1) → since 1 < 5, round down → 3.14.
Different rounding modes exist for different situations. Truncation (floor) always rounds toward zero. Ceiling always rounds up. Banker's rounding (round half to even) rounds 2.5 → 2 and 3.5 → 4, reducing cumulative rounding error in financial calculations — this is the default in many programming languages and accounting systems.
Significant Figures vs. Decimal Places
There's an important distinction between decimal places and significant figures. Decimal places count digits after the decimal point (3.14159 to 2 decimal places = 3.14). Significant figures count meaningful digits from the first non-zero digit (3.14159 to 3 significant figures = 3.14; but 0.00314159 to 3 sig figs = 0.00314).
In scientific measurement, significant figures communicate the precision of a measurement. A measurement of 3.40 m has 3 sig figs and implies the measurement is precise to the nearest 0.01 m. Writing 3.4 m implies only 2 sig figs and less precision. This system prevents false precision in reported results.
When multiplying or dividing measurements, the result should have the same number of significant figures as the least precise measurement. When adding or subtracting, round to the same decimal place as the least precise number. These rules ensure your calculations reflect actual measurement uncertainty.
Rounding in Finance, Science, and Everyday Life
In finance, rounding affects every calculation. Prices are rounded to the nearest cent. Tax calculations often truncate to avoid over-collection. Cumulative rounding errors over millions of transactions can be significant — this is why financial systems use decimal arithmetic rather than floating-point (which has inherent binary rounding errors). The classic example: $0.01 rounding error × 1 billion transactions = $10 million discrepancy.
In measurement and science, rounding is about communicating appropriate precision. Physical constants like π ≈ 3.14159265 are rounded depending on the precision needed. For most engineering, 4-5 significant figures suffice. Geodetic calculations may need 10+ digits.
In everyday contexts: rounding a restaurant bill to estimate tip, rounding minutes when scheduling, or rounding nutritional values. Mental math usually involves rounding to convenient numbers — multiplying 19 × 21 ≈ 20 × 20 = 400 (actual: 399), then adjusting.
Sidst opdateret: March 2026
Frequently Asked Questions
What is banker's rounding and why is it used?
Banker's rounding (round half to even) rounds 0.5 to the nearest even number: 2.5 rounds to 2, 3.5 rounds to 4. Over many calculations, exactly half of '5' cases round up and half round down, reducing cumulative error. Used in finance, Python 3, and IEEE 754 floating-point arithmetic.
How do I round to the nearest 10, 100, or 1000?
Use negative decimal places. Rounding 1,847 to the nearest 10 = 1,850 (look at units digit: 7 ≥ 5, round up). To nearest 100 = 1,800 (look at tens digit: 4 < 5, round down). To nearest 1,000 = 2,000 (look at hundreds: 8 ≥ 5, round up).
Why does 2.675 round to 2.67 instead of 2.68?
This is a floating-point representation issue. 2.675 cannot be represented exactly in binary floating-point and is stored as slightly less than 2.675 (approximately 2.6749999...), so it rounds down. For precise decimal arithmetic, use decimal libraries rather than binary floating-point.