@argantom/argantom
    Preparing search index...

    Interface Unit

    A currency unit.

    interface Unit {
        format(i: bigint): string;
        fromNumber(n: number): bigint;
        toNumber(i: bigint): number;
        unitId(): string;
    }
    Index

    Methods

    • Format this currency into the canonical string repr.

      Parameters

      • i: bigint

      Returns string

    • Load this currency from the canonical number repr.

      Parameters

      • n: number

      Returns bigint

    • Extract the canonical number repr for a currency value.

      Parameters

      • i: bigint

      Returns number

    • The currency identifier.

      Returns string