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

    Interface NumericAdapter<T>

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

    interface NumericAdapter<T> {
        config: object;
        id: string;
        identity: object;
        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;
        toNumber(value: T): number;
        toString(value: T): string;
    }

    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" | "core" | "arithmetic"

    Available capability tier.

    • Parse a strict decimal literal or convert a native scalar. No arbitrary object coercion.

      Parameters

      • value: unknown

      Returns T