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

    Class Decimal

    The core Decimal representation plus arithmetic and rounding operations. Import the scientific tier for powers, logarithms, and trigonometry.

    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