UnitValue
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
baseUnit | any | r/w | |
baseUnit | UnitValue | r/w | The base unit. |
type | string | readonly | The unit name. |
value | number | r/w | The numeric value. |
Methods
UnitValue as (unitName:string)
Return this instance as a different unit.
Parameter | Type | Description |
---|---|---|
unitName | string | The unit name. |
any convert (unitName:string)
Convert this instance to a different unit.
Parameter | Type | Description |
---|---|---|
unitName | string | The unit name. |
Element of
UnitValue.baseUnit
Return
UnitValue UnitValue.as (unitName:string)