Function reference · Math
significant
Rounds a number to a requested number of significant figures.
significant(value, figures) rounds the supplied value to the specified number of significant figures. Unlike round(value, places), the precision is relative to the number's magnitude.
Examples
These examples use Nerdamer Notation.
Round to three significant figures.
significant(1234.567,3)
// → 1230Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
significant(arg1, arg2)
nerdamer.significant
Call the operation through the default nerdamer import.
nerdamer.significant(x: ExpressionInput, digits: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | Number or expression to round. |
digits | ExpressionInput | Positive integer number of significant figures. |
Returns
Expression — The rounded value, or a symbolic significant(x, digits) call.
