Skip to content

decimalSqrt

decimalSqrt(value, context?): Decimal

Defined in: packages/math-numbers/src/decimal/decimal-sqrt.ts:23

Principal square root, by Newton–Raphson.

The iteration runs with extra guard digits so the final rounding sees a value already correct past the requested precision.

Readonly<Decimal>

Readonly<DecimalContext> = numericConfig.defaultDecimalContext

Decimal

When value is negative.