@neutrium/utilities - v3.1.0
    Preparing search index...

    Immutable Decimal scientific context, with tier-preserving configuration.

    interface DecimalScientificAdapter {
        config: Readonly<DecimalConfig>;
        id: string;
        identity: object;
        tier: "scientific";
        abs(value: ScientificDecimal): ScientificDecimal;
        acos(value: ScientificDecimal): ScientificDecimal;
        acosh(value: ScientificDecimal): ScientificDecimal;
        add(a: ScientificDecimal, b: ScientificDecimal): ScientificDecimal;
        asin(value: ScientificDecimal): ScientificDecimal;
        asinh(value: ScientificDecimal): ScientificDecimal;
        atan(value: ScientificDecimal): ScientificDecimal;
        atan2(y: ScientificDecimal, x: ScientificDecimal): ScientificDecimal;
        atanh(value: ScientificDecimal): ScientificDecimal;
        cbrt(value: ScientificDecimal): ScientificDecimal;
        ceil(value: ScientificDecimal): ScientificDecimal;
        compare(a: ScientificDecimal, b: ScientificDecimal): number;
        cos(value: ScientificDecimal): ScientificDecimal;
        cosh(value: ScientificDecimal): ScientificDecimal;
        div(a: ScientificDecimal, b: ScientificDecimal): ScientificDecimal;
        exp(value: ScientificDecimal): ScientificDecimal;
        floor(value: ScientificDecimal): ScientificDecimal;
        from(value: unknown): ScientificDecimal;
        isFinite(value: ScientificDecimal): boolean;
        isInteger(value: ScientificDecimal): boolean;
        isNaN(value: ScientificDecimal): boolean;
        isValue(value: unknown): value is ScientificDecimal;
        ln(value: ScientificDecimal): ScientificDecimal;
        log(value: ScientificDecimal, base: ScientificDecimal): ScientificDecimal;
        mul(a: ScientificDecimal, b: ScientificDecimal): ScientificDecimal;
        neg(value: ScientificDecimal): ScientificDecimal;
        pi(): ScientificDecimal;
        pow(
            value: ScientificDecimal,
            exponent: NumericInput<ScientificDecimal>,
        ): ScientificDecimal;
        rem(a: ScientificDecimal, b: ScientificDecimal): ScientificDecimal;
        round(value: ScientificDecimal): ScientificDecimal;
        sin(value: ScientificDecimal): ScientificDecimal;
        sinh(value: ScientificDecimal): ScientificDecimal;
        sqrt(value: ScientificDecimal): ScientificDecimal;
        sub(a: ScientificDecimal, b: ScientificDecimal): ScientificDecimal;
        tan(value: ScientificDecimal): ScientificDecimal;
        tanh(value: ScientificDecimal): ScientificDecimal;
        toNumber(value: ScientificDecimal): number;
        toString(value: ScientificDecimal): string;
        trunc(value: ScientificDecimal): ScientificDecimal;
        withConfig(options: DecimalConfigInput): DecimalScientificAdapter;
    }

    Hierarchy (View Summary)

    Index
    config: Readonly<DecimalConfig>

    Frozen Decimal settings captured when the adapter is created.

    id: string

    Diagnostic backend name, not a compatibility key.

    identity: object

    Stable backend compatibility identity, shared across tiers and configurations.

    tier: "scientific"

    Complete scientific capability tier.

    • Remainder using backend semantics; Decimal uses its modulo setting.

      Parameters

      • a: ScientificDecimal
      • b: ScientificDecimal

      Returns ScientificDecimal