@neutrium/math - v2.2.0
    Preparing search index...

    Class DecimalArithmeticAdapter<C, Tier>

    Isolated Decimal arithmetic context, inheriting conversion and inspection from the core adapter.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index
    • Capture arithmetic defaults. Richer specializations must supply their constructor and tier.

      Type Parameters

      • C extends ArithmeticDecimalConstructor = typeof ArithmeticDecimal
      • Tier extends "scientific" | "arithmetic" = "arithmetic"

      Parameters

      • options: DecimalConfigInput = {}
      • ...backend:
            | [Source: C, tier: Tier]
            | ([typeof ArithmeticDecimal, "arithmetic"] extends [C, Tier] ? [] : never)

      Returns DecimalArithmeticAdapter<C, Tier>

    id: "decimal" = 'decimal'

    Diagnostic backend name.

    tier: Tier

    Available numerical capability tier.

    • get config(): Readonly<DecimalConfig>

      Frozen precision, rounding and range settings captured at construction.

      Returns Readonly<DecimalConfig>