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.
Parameters
Section titled “Parameters”Readonly<Decimal>
context?
Section titled “context?”Readonly<DecimalContext> = numericConfig.defaultDecimalContext
Returns
Section titled “Returns”Throws
Section titled “Throws”When value is negative.