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

    Interface AdapterConformanceOptions<T>

    Explicit backend policies; the suite never infers these from id or tier.

    interface AdapterConformanceOptions<T> {
        fractional: boolean;
        nonFinite: boolean;
        roundingCases?: readonly { expected: string; input: string }[];
        scientificTolerance?: number;
        signedZero: boolean;
        snapshot?: (value: T) => string;
    }

    Type Parameters

    • T
    Index
    fractional: boolean

    Whether 1.5 and -1.25 are representable; otherwise their conversion must throw.

    nonFinite: boolean

    Whether NaN and both infinities are representable; otherwise conversion must throw.

    roundingCases?: readonly { expected: string; input: string }[]

    Optional backend-specific rounding ties/directions, checked in addition to integer rounding.

    scientificTolerance?: number

    Absolute Number tolerance for scientific smoke checks; defaults to 1e-10.

    signedZero: boolean

    Whether converting and serializing -0 preserves its sign.

    snapshot?: (value: T) => string

    Detached, stable text for mutation checks. Defaults to adapter.toString.