@neutrium/decimal API - v2.2.0
    Preparing search index...

    Class Decimal

    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.

    Hierarchy (View Summary)

    Index
    clone: (config?: Partial<DecimalConfig>) => DecimalConstructor

    Create an independently configurable constructor for this tier.

    Type Declaration

    max: {
        (value: DecimalValueIterable): Decimal;
        (value: DecimalValue, ...values: DecimalValue[]): Decimal;
    }

    Select the greatest value from an iterable or scalar inputs.

    Type Declaration

    min: {
        (value: DecimalValueIterable): Decimal;
        (value: DecimalValue, ...values: DecimalValue[]): Decimal;
    }

    Select the least value from an iterable or scalar inputs.

    Type Declaration

    • Convert according to JavaScript's primitive hint.

      Parameters

      • hint: "string" | "number" | "default"

      Returns string | number

    • Returns number

      The number of digits after the decimal point, or NaN for a non-finite value.

    • Count this value's significant digits.

      Parameters

      • OptionalincludeTrailingIntegerZeros: boolean

      Returns number