Staquia API
    Preparing search index...

    Interface INumberSystem

    The configuration of a number system: its digits (characters by their unicode value) and its lengths.

    interface INumberSystem {
        base: number;
        first: string;
        last: string;
        lmax: number;
        ln: number;
        lz: number;
        "lϰ": number;
        set?: string;
        zero: string;
        "ϰ": number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    base: number

    The number of digits, including the zero: (last - first) + 2.

    first: string

    The character of the first digit (1).

    last: string

    The character of the last digit (base - 1).

    lmax: number

    The max length of a position: ln + lz. Longer positions are an OverflowError.

    ln: number

    The fixed length of the N section.

    lz: number

    The max length of the Z section.

    "lϰ": number

    The threshold length: ceil((1 - ϰ) * lmax). Positions that reach it are returned inside a ThresholdReachedError, an early warning before the overflow.

    set?: string

    The characters of a system whose digits are not a range: the zero followed by every digit, sorted by their code (undefined for a range from first to last).

    zero: string

    The character of the zero digit.

    "ϰ": number

    The factor fϰ (0 to 1) that sets the threshold length lϰ.