Mathematics
Exact decimal rounding
Round decimal text without first converting it to a binary floating-point number. The additional result describes significant digits in the original decimal text.
Choose decimal places (−12 to 12) or 1–10 significant figures, then select a rounding rule. Significant figures are counted from the first nonzero digit. Zero is shown as 0. Whole-number trailing zeros remain place holders; the requested figure count is retained in the entered settings. Decimal text limits remain 100 digits before and 50 after the separator. Scientific notation is not accepted.
Result
Formula / calculation:
Exact rounding from entered decimal digits. Decimal places remain the default, including negative places for tens and larger powers. Significant figures choose the rounding position automatically, including beyond the decimal-place mode’s −12 to 12 range. Half-away rounds ties away from zero; half-even chooses the even retained digit. Floor rounds down, ceil up and truncate towards zero. Significant figures range from 1 to 10; zero becomes 0. After a carry the original rounding position is retained, e.g. 0.009995 to 3 figures gives 0.01000. No silent clamping of settings. The additional count describes the original plain-decimal notation, independently of the rounding settings. Leading zeros are excluded; written fractional trailing zeros are included for a nonzero value. Whole-number trailing zeros are ambiguous, and a count is not inferred for an all-zero entry. This does not establish measurement accuracy or whether a value is exact. A dot or comma is a decimal separator here, not a grouping separator. Scientific notation remains unsupported. The 1 to 10 limit applies to the requested rounding target, not to this original-text count.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Exact rounding from entered decimal digits. Decimal places remain the default, including negative places for tens and larger powers. Significant figures choose the rounding position automatically, including beyond the decimal-place mode’s −12 to 12 range. Half-away rounds ties away from zero; half-even chooses the even retained digit. Floor rounds down, ceil up and truncate towards zero. Significant figures range from 1 to 10; zero becomes 0. After a carry the original rounding position is retained, e.g. 0.009995 to 3 figures gives 0.01000. No silent clamping of settings. The 1 to 10 limit is the rounding target. The additional count describes the original plain-decimal notation; ambiguous or zero-only entries are identified explicitly.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Decimal text
- 1.005
- Round to
- Decimal places or powers of ten
- Decimal places (−12–12)
- 2
- Rounding rule
- Half away from zero
Result
- Exact rounded decimal
- 1.01
- Original significant-digit count
- 4
Frequently asked questions
How do I round a decimal number exactly?
Enter the decimal text, choose decimal places (-12 to 12) or 1 to 10 significant figures, and select a rounding rule. The text is rounded without first converting it to a binary floating-point number.
Which rounding rules are available?
Half-away rounds ties away from zero and half-even chooses the even retained digit. Floor rounds down, ceil rounds up and truncate rounds towards zero.
Can I round to tens or hundreds?
Yes. Decimal places remain the default, including negative places for tens and larger powers.
How are significant figures counted?
They are counted from the first nonzero digit, and zero is shown as 0. After a carry the original rounding position is kept, so 0.009995 to 3 figures gives 0.01000.
What input limits apply?
Decimal text may have 100 digits before and 50 after the separator. Scientific notation is not accepted, and a dot or comma is a decimal separator, not a grouping separator.
What is the original significant-digit count?
It describes the original plain-decimal text, independently of the rounding settings. Leading zeros are excluded, and written fractional trailing zeros count for a nonzero value. Whole-number trailing zeros are ambiguous.