The Uom class represents the units for a measure.

Hierarchy (view full)

Constructors

Properties

dimensions: Dimensions
end?: number
labels: string[]

The label strings to use for each dimension.

name: string
pos?: number
type: "uom" = "uom"
AMPERE: Uom = ...

ampere

CANDELA: Uom = ...

candela

COULOMB: Uom = ...

coulomb

KELVIN: Uom = ...

kelvin

KILOGRAM: Uom = ...

kilogram

METER: Uom = ...

meter or metre

MOLE: Uom = ...

mole

ONE: Uom = ...

dimensionless

SECOND: Uom = ...

second

Accessors

Methods

  • Parameters

    • Optional fractionDigits: number
    • Optional compact: boolean

      Determines whether a multiplier of unity will be included in the result.

    Returns string

  • Parameters

    • Optional fractionDigits: number
    • Optional compact: boolean

      Determines whether a multiplier of unity will be included in the result.

    Returns string

  • Parameters

    • Optional precision: number
    • Optional compact: boolean

      Determines whether a multiplier of unity will be included in the result.

    Returns string

  • Parameters

    • Optional radix: number
    • Optional compact: boolean

      Determines whether a multiplier of unity will be included in the result.

    Returns string