Rounding calculator
Round decimal places or significant figures with an explicit tie rule.
0–12 decimal places or 1–12 significant figures. Exact decimal rounding, including negative ties. Significant figures use scientific notation to show trailing zeros explicitly.
Rounded value
1.01
How it’s calculatedCalculated on your device
Decimal digits are rounded using exact integer arithmetic. Nearest ties go away from zero; ceiling goes toward +∞, floor toward −∞, and truncate toward zero.
Displayed values may be rounded. Calculations keep the underlying precision.
0–12 decimal places or 1–12 significant figures. Up to 150 input characters and exponent ±100. Significant figures display scientific notation so trailing zeros are unambiguous; decimal places preserve requested zeros.
The formula, made simple
Round exact decimal text using a chosen precision and direction. Select decimal places or significant figures.
Nearest rounds midpoint ties away from zero. Ceiling moves toward positive infinity, floor toward negative infinity, and truncation toward zero.
A worked example
1.005 to 2 decimal places is 1.01 with Nearest. -1.5 to 0 places is -2 with Nearest and -1 with Ceiling.
A few useful answers
Why not use the browser’s usual rounding directly?
Decimal digits are converted to integers before rounding, avoiding binary midpoint artifacts such as 1.005. This also makes the negative tie rule explicit.