@neutrium/formatter - v1.0.1
    Preparing search index...

    Type Alias FormatScale

    FormatScale:
        | { exponent: number; kind: "decimal" }
        | { exponent: number; kind: "binary" }

    Decimal or binary magnitude selected for a formatted value.

    Decimal exponents are powers of ten, while binary exponents are powers of two. For example, compact millions use { kind: "decimal", exponent: 6 } and MiB uses { kind: "binary", exponent: 20 }.

    Type Declaration

    • { exponent: number; kind: "decimal" }
      • Readonlyexponent: number

        Power-of-ten exponent applied by the presentation.

      • Readonlykind: "decimal"

        Decimal, power-of-ten scale.

    • { exponent: number; kind: "binary" }
      • Readonlyexponent: number

        Power-of-two exponent applied by the presentation.

      • Readonlykind: "binary"

        Binary, power-of-two scale.