
Significant Figures Calculator
Use this free significant figures calculator (sig fig calculator) to count significant digits in any decimal, integer, or scientific E-notation string.
Open toolRound any finite decimal up to 30 digits to 0 through 10 decimal places (nearest whole number, tenth, hundredth, or thousandth) in this rounding calculator. Choose Nearest (half away from zero), Floor, Ceiling, or Truncate with exact BigInt decimal arithmetic that avoids binary floating-point rounding bugs.
Enter the inputs, then select Calculate result.
Result will appear here
Standard browser scripts call JavaScript's Number.prototype.toFixed(), which stores "1.005" as the IEEE 754 binary float 1.0049999999999998934... and rounds it down to "1.00". This rounding numbers calculator parses your text input directly into BigInt integers and tests remainders without binary conversion (or check digit precision first in our Significant Figures Calculator).
BigInt Scaling Rule: digits = BigInt(int + frac), divisor = 10^(frac.length - places), q = digits / divisor, remainder = digits % divisor; Nearest increments q when remainder * 2n >= divisor.
Supports positive and negative finite decimals up to 30 total digits across 0 to 10 decimal places (see our Decimal To Fraction Converter for rational equivalents).
Compare 10 common decimal inputs across target place values (0 to 4 decimal places) and all four rounding rules (Nearest, Floor, Ceiling, and Truncate).
| Input (value) | Place Value Name | Decimal places | Nearest (Half Away From 0) | Floor (Toward -∞) | Ceiling (Toward +∞) | Truncate (Toward 0) |
|---|---|---|---|---|---|---|
| 12.345 | Nearest whole number (ones) | 0 | 12 | 12 | 13 | 12 |
| 12.345 | Nearest tenth (0.1) | 1 | 12.3 | 12.3 | 12.4 | 12.3 |
| 12.345 | Nearest hundredth (0.01, default) | 2 | 12.35 | 12.34 | 12.35 | 12.34 |
| 1.005 | Exact cent midpoint (1.005) | 2 | 1.01 | 1.00 | 1.01 | 1.00 |
| 12.341 | Round up (Ceiling) test | 2 | 12.34 | 12.34 | 12.35 | 12.34 |
| -12.345 | Negative hundredth midpoint | 2 | -12.35 | -12.35 | -12.34 | -12.34 |
| -12.341 | Negative non-midpoint | 2 | -12.34 | -12.35 | -12.34 | -12.34 |
| 3.14159265 | Nearest thousandth (0.001) | 3 | 3.142 | 3.141 | 3.142 | 3.141 |
| 0.0004567 | Nearest ten-thousandth (0.0001) | 4 | 0.0005 | 0.0004 | 0.0005 | 0.0004 |
| 12.3 | Fixed trailing-zero padding | 3 | 12.300 | 12.300 | 12.300 | 12.300 |
Round any positive or negative decimal to a target place value in three steps.
Type or paste a finite decimal into the Decimal number spelling box (12.345 is preloaded). Include at least one digit before the decimal point (0.5, not .5).
Enter 0 for the nearest whole number, 1 for the nearest tenth, 2 for the nearest hundredth, or up to 10, then choose Nearest, Floor, Ceiling, or Truncate.
Select Calculate result to compute the exact rounded string, then click Copy or Download (result.txt) to paste it into your spreadsheet or report.
See how this round to the nearest tenth calculator and round to the nearest hundredth calculator handles place-value look-ahead digits, currency midpoints, and directional modes.
To use this tool as a round to the nearest tenth calculator on 12.345, set Decimal places to 1 and keep Nearest: the look-ahead hundredths digit is 4 (< 5), returning 12.3. Setting Decimal places to 2 makes it a round to the nearest hundredth calculator: the look-ahead thousandths digit is 5 (remainder * 2n = 10n >= 10n), rounding 12.345 up to 12.35. For ratios that start as fractions, divide them first in our Fraction To Decimal Converter or reduce them in our Fraction Simplifier.

In tax, invoice, and Percentage Calculator workflows, a 5% surcharge on $20.10 equals $1.005. Because IEEE 754 binary floating-point cannot represent 1.005 exactly, Number(1.005).toFixed(2) in JavaScript outputs "1.00". Entering 1.005 with 2 decimal places in our calculator parses digits = 1005n, divides by 10n (q = 100n, remainder = 5n), and verifies 5n * 2n >= 10n, returning the exact cent value 1.01.

When you need a round up calculator that always rounds toward positive infinity (+∞), select Ceiling: 12.341 at 2 places rounds up to 12.35, while -12.345 rounds toward +∞ to -12.34. Conversely, Floor always rounds toward negative infinity (-∞), turning -12.341 into -12.35, whereas Truncate simply drops digits past the target place (-12.345 -> -12.34) and Nearest rounds -12.345 away from zero to -12.35.

The four options in the Rounding rule menu implement distinct mathematical definitions:
First, Nearest (Round Half Away From Zero) checks remainder * 2n >= divisor: whenever the first dropped digit is 5, 6, 7, 8, or 9, the magnitude |x| increases by 1 unit in the last kept place (12.345 -> 12.35 and -12.345 -> -12.35). Floor returns the greatest decimal at the target precision less than or equal to the input (12.349 -> 12.34, -12.341 -> -12.35), while Ceiling returns the smallest decimal greater than or equal to the input (12.341 -> 12.35, -12.349 -> -12.34).
Second, Truncate discards all digits beyond places without incrementing (±12.349 -> ±12.34). If your input has fewer fractional digits than places (12.3 with places = 3), all four modes pad trailing zeros (12.300), and values that round to zero never print a negative sign (-0.001 at 2 places outputs 0.00). You can evaluate the relative difference between unrounded and rounded figures in our Percent Error Calculator.

Before clicking Calculate result, confirm that your inputs meet these three validation rules:
First, the validator /^([+-]?)(\d+)(?:\.(\d*))?$/ accepts up to 30 combined integer and fractional digits and rejects e or E exponents. If your number is in scientific notation (1.2345e-2), expand it into standard decimal form (0.012345) first using our Scientific Notation Converter.
Second, enter an integer from 0 to 10 in Decimal places (0 for whole numbers, 1 for tenths, 2 for hundredths, 3 for thousandths, up to 10). Always include at least one digit before the decimal point (0.345, not .345) and omit thousands commas (12345.67, not 12,345.67), or the parser returns 'Use a finite decimal spelling with at most 30 digits and no exponent.'


Use this free significant figures calculator (sig fig calculator) to count significant digits in any decimal, integer, or scientific E-notation string.
Open toolUse this free scientific notation converter to convert decimals and E-notation (like 2.5e-3 or 12345) into standard form, coefficient, and power of 10.
Open tool
Use this free decimal to fraction converter to turn any finite decimal up to 12 decimal places (like 0.125 = 1/8 or 2.75 = 11/4) into a simplified fraction.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this free fraction to decimal converter to divide any integer numerator by a nonzero denominator (like 1/8 = 0.125) up to 12 significant digits online.
Open tool
Use this free percent error calculator to calculate percent error between an observed value and an accepted reference value up to 12 significant digits.
Open tool
Use this free percentage calculator to calculate percentage of a number (Percentage × Base / 100) up to 12 significant digits, with examples and tables.
Open toolUse this free fraction simplifier to reduce proper and improper fractions to lowest terms, find the greatest common divisor (GCD), and get mixed numbers.
Open toolAnswers about using Rounding Calculator and understanding its results.
Set the Decimal places field to match your target place value: enter 0 to round to the nearest whole number (ones), 1 to round to the nearest tenth (0.1), 2 to round to the nearest hundredth (0.01, such as cents), or 3 to round to the nearest thousandth (0.001).
When the look-ahead digit is 5 (an exact halfway tie), Nearest rounds away from zero rather than using round-half-to-even banker's rounding. That means +2.35 at 1 decimal place becomes +2.4, and -2.35 at 1 decimal place becomes -2.4.
Ceiling always rounds toward positive infinity (12.341 -> 12.35, -12.349 -> -12.34), Floor always rounds toward negative infinity (12.349 -> 12.34, -12.341 -> -12.35), and Truncate always rounds toward zero by dropping all digits after the target decimal place (12.349 -> 12.34, -12.349 -> -12.34).
In IEEE 754 binary floating-point, 1.005 is stored slightly below the true decimal midpoint (1.0049999999999998934...), causing toFixed(2) to round down to 1.00. Our calculator scales your text string as an exact base-10 BigInt integer (1005n), so 1.005 is recognized as an exact midpoint and rounds to 1.01.
Rounding after every step in a multi-step formula accumulates rounding drift that can shift your final answer by several units in the last decimal place. Keep full precision (or at least two extra guard digits) during intermediate steps and use this rounding calculator only on the final reported result.
Because the Decimal places field accepts 0 through 10 digits to the right of the decimal point, shift the decimal point left before rounding (1,234 divided by 100 is 12.34), round to 0 decimal places (12), and multiply back by 100 (1,200).
Choose another tool for your next calculation, conversion, or text task.