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

    Interface NumericAdapter<T>

    Immutable scalar representation and comparison contract, independent of any backend.

    interface NumericAdapter<T> {
        id: string;
        tier: "scientific" | "core" | "arithmetic";
        compare(a: T, b: T): number;
        from(value: unknown): T;
        isFinite(value: T): boolean;
        isInteger(value: T): boolean;
        isNaN(value: T): boolean;
        isValue(value: unknown): value is T;
        toBytes(value: T): number;
        toNumber(value: T): number;
        toString(value: T): string;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implemented by

    Index
    id: string

    Diagnostic backend name, not a compatibility key.

    tier: "scientific" | "core" | "arithmetic"

    Available capability tier.