StaticcloneCreate an independently configurable constructor for this tier.
Create an independently configurable scientific constructor.
Optionalconfig: Partial<DecimalConfig>StaticfromConstruct a correctly rounded sum in the scientific tier.
Construct a correctly rounded sum in the scientific tier.
StaticmaxSelect the greatest value from an iterable or scalar inputs.
Select the greatest value from a non-empty iterable.
Select the greatest of one or more scalar values.
StaticminSelect the least value from an iterable or scalar inputs.
Select the least value from a non-empty iterable.
Select the least of one or more scalar values.
StaticconfigRead a frozen snapshot of this constructor's active configuration.
Apply a validated partial configuration update to this constructor.
StaticlimitsHard validation limits shared by every Decimal tier.
StaticPIPi at the active precision.
Convert according to JavaScript's primitive hint.
Return the absolute value.
Calculate the inverse cosine in radians.
Calculate the inverse hyperbolic cosine.
Calculate the inverse sine in radians.
Calculate the inverse hyperbolic sine.
Calculate the inverse tangent in radians.
Calculate the inverse hyperbolic tangent.
Return the real cube root.
Round to an integer toward positive Infinity.
Calculate the cosine of this radian value.
Calculate the hyperbolic cosine.
Divide by a value using the active precision and rounding mode.
Divide by a value and truncate the quotient toward zero.
The number of digits after the decimal point, or NaN for a non-finite value.
Raise Euler's number to this value.
Round to an integer toward negative Infinity.
Whether this value is a finite even integer.
Whether this value is finite.
Whether this value is a finite integer.
Whether this value is NaN.
Whether this value has a negative sign.
Whether this value is a finite odd integer.
Whether this value has a positive sign.
Whether this value is positive or negative zero.
Calculate the natural logarithm.
Calculate a remainder using the configured modulo mode.
Return a new Decimal with the sign inverted.
Raise to a safe integer Number exponent, rounding only the final result. Negative exponents calculate reciprocals. Invalid exponents throw INVALID_ARGUMENT.
Count this value's significant digits.
OptionalincludeTrailingIntegerZeros: booleanRound to an integer using the configured rounding mode.
-1, -0, 0, 1, or NaN according to this value's state.
Calculate the sine of this radian value.
Calculate the hyperbolic sine.
Return the principal square root.
Calculate the tangent of this radian value.
Calculate the hyperbolic tangent.
Estimate the bytes used by this value's stored numeric state.
The estimate counts the coefficient reference, exponent, sign, and each base-1e7 coefficient word as one eight-byte slot. It excludes engine-dependent object and array headers, alignment, private-field metadata, and shared prototype data.
Round to a maximum number of decimal places.
Optionaldp: numberOptionalrm: RoundingModeFormat this value in exponential notation.
Optionaldp: numberOptionalrm: RoundingModeFormat this value in fixed-point notation.
Optionaldp: numberOptionalrm: RoundingModeApproximate this value as a fraction.
Optionaldenominator: DecimalValueReturn the exact string serialized by JSON.
Round to a multiple of another value.
Optionalvalue: DecimalValueOptionalrm: RoundingModeConvert to the nearest JavaScript number.
Format this value to a specified number of significant digits.
Optionalsd: numberOptionalrm: RoundingModeReturn an owned immutable exact rational term with denominator 1 and a normalized numerator. Independent of calculation and formatting settings. Both zero signs produce numerator 0. NaN and infinities throw INVALID_ARGUMENT.
Round to a maximum number of significant digits.
Optionalsd: numberOptionalrm: RoundingModeFormat this value in canonical fixed or exponential notation.
Return the exact primitive string value, preserving negative zero.
Truncate to an integer toward zero.
Return the exact string used by default JavaScript coercion.
Staticatan2Calculate the angle from the positive x-axis to (x, y).
StaticcompareCompare an exact rational sum with zero, returning -1, 0 or 1. Precision, rounding, exponent and formatting settings do not affect the comparison. Terms have the same validation and resource limits as fromRationalSum. Empty, all-zero and exactly cancelling inputs return +0.
The arithmetic Decimal tier plus powers, logarithms, and trigonometry. Exported as Decimal by both the root and scientific entry points. Calculations preserve library clones and return this tier for application subclasses.