How it works
Significant figures count the digits that carry meaning, starting at the first non-zero digit. To round, find the position of the first digit, keep the chosen number of digits and round the next one. Leading zeros never count. Trailing zeros after a decimal point do. In a whole number without a decimal point, trailing zeros are not counted here.
Formula
rounded = round(x, d)
Sources
Example
0.0045678 to 3 significant figures: d = 3 − 1 − (−3) = 5, so round to 5 decimals = 0.00457. Scientific form 4.57e-3. Check: 0.00457 has the digits 4, 5, 7, which is 3 significant figures.
Frequently asked questions
Do leading zeros count?
No.
Do trailing zeros count?
After a decimal point, yes.
What about 1500?
It is ambiguous. Write 1.5e3 for 2 significant figures.
Is rounding half up?
Yes, half rounds up.