namespace Quantity
let x:Unit.METRE = new Unit(11, "cm"); let x:Unit.EUR = new Unit(10000, "€");
type Quantity.SECOND
Definition:Quantity
type Quantity.METRE
Definition:Quantity
type Quantity.GRAM
Definition:Quantity
type Quantity.AMPERE
Definition:Quantity
type Quantity.KELVIN
Definition:Quantity
type Quantity.MOLE
Definition:Quantity
type Quantity.CANDELA
Definition:Quantity
type Quantity.CMO
Definition:Quantity
type Quantity.EUR
Definition:Quantity
type Quantity.USD
Definition:Quantity
type Quantity.GBP
Definition:Quantity
type Quantity.RUB
Definition:Quantity
type Quantity.JPY
Definition:Quantity
type Quantity.CNY
Definition:Quantity
enum Quantity.Formatting
class QuantityU
<extends Unit | undefined = undefine>
Constructors
constructor(value?: number | bigint | string | [number | bigint, number | bigint], unit?: U extends Unit ? code_to_extended_symbol : unknown)
@param value: can be a number, bigint, or string: '1.25', '1', '0.5e12', '1/10', or [numerator, denominator]
@param unit: undefined
*constructor**(value?: number | bigint | string | [number | bigint, number | bigint], encoded_unit?: unit)
*constructor**(value: number | bigint | string | [number | bigint, number | bigint], symbol_or_encoded_unit: string | unit)
Properties
cached_binaries: Map
known_aliases: string | bigint[] | string[][]
EXPONENT_MIN: any
EXPONENT_MAX: number
unit: unit
unit_binary: ArrayBuffer
unit_formatted: string
unit_formatted_short: string
short_divisor: bigint
Help us improving our docs
Our documentations are fully open source. Something is wrong or unclear? Edit documentation.