Function reference · Math
numeric
Evaluates a numeric value to a finite number of significant decimal digits.
numeric(value[,precision]) is the explicit finite-precision evaluation boundary. It evaluates fully numeric input and returns decimal-origin values at the requested significant-digit precision.
Symbolic results remain symbolic rather than having individual symbolic coefficients approximated. The full JavaScript / TypeScript package also exposes nerdamer.numeric(...).
Examples
These examples use Nerdamer Notation.
Evaluate a rational value to five significant digits.
numeric(1/3,5) // → 0.33333
Apply finite-precision evaluation to a structured value.
numeric([1/3,2/3],5) // → [0.33333, 0.66667]
Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
numeric(value[, precision])
Parameters
value— Value to evaluate numerically.precision— Optional positive number of significant digits. Defaults to the active Nerdamer precision.
