general

Count significant figures in a number and optionally round to N significant figures. Accepts the number as a string to preserve trailing zeros (e.g. '1.200' has 4 sig figs). Applies standard sig fig rules: leading zeros do not count, trailing zeros after a decimal point count, trailing zeros before a decimal point are treated as significant. Also returns the number in scientific notation. Essential for laboratory measurements, error analysis, and maintaining proper precision in chained calculations.

post/api/sig_figs

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/sig_figs
  • Auth: none declared

Request body

number_strstring required

The number as a string to preserve trailing zeros (e.g. '1.200')

round_to_nnumber

Optionally round the number to this many significant figures

Response

Computed result for sig_figs

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.