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

    Interface ArithmeticAdapter<T>

    Core plus nonmutating arithmetic and integer rounding.

    interface ArithmeticAdapter<T> {
        config: object;
        id: string;
        identity: object;
        tier: "scientific" | "arithmetic";
        abs(value: T): T;
        add(a: T, b: T): T;
        ceil(value: T): T;
        compare(a: T, b: T): number;
        div(a: T, b: T): T;
        floor(value: T): T;
        from(value: unknown): T;
        isFinite(value: T): boolean;
        isInteger(value: T): boolean;
        isNaN(value: T): boolean;
        isValue(value: unknown): value is T;
        mul(a: T, b: T): T;
        neg(value: T): T;
        rem(a: T, b: T): T;
        round(value: T): T;
        sub(a: T, b: T): T;
        toNumber(value: T): number;
        toString(value: T): string;
        trunc(value: T): T;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    config: object

    Immutable settings; use this identity to scope cached numerical results.

    id: string

    Diagnostic backend name, not a compatibility key.

    identity: object

    Stable backend compatibility identity, shared across tiers and configurations.

    tier: "scientific" | "arithmetic"

    Available arithmetic capability tier.