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)
// → 1230

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

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

NameTypeDescription
xExpressionInputNumber or expression to round.
digitsExpressionInputPositive integer number of significant figures.

Returns

Expression — The rounded value, or a symbolic significant(x, digits) call.

Browse the nerdamer API →

← Back to Function reference