Class
UnitValue |
| Represents a measurement as a combination of values and unit. Note that this object is not available in all applications. |
QuickLinks |
as, convert |
Properties
| Property | Type | Access | Description |
baseUnit | UnitValue |
r/w | The base unit. |
type | string |
readonly | The unit name. |
value | number |
r/w | The numeric value. |
|
Class
| Property | Type | Access | Description |
baseUnit | UnitValue |
r/w | The base unit for all conversions. |
|
Methods
| InstancesUnitValue as (unitName:
string)
Returns this instance as a different unit.
Parameter | Type | Description |
unitName | string | The unit name. |
any convert (unitName:
string)
Converts this instance to a different unit.
Parameter | Type | Description |
unitName | string | The unit name. |
|
Element of |
UnitValue.baseUnit
UnitValue.baseUnit
|
Return |
UnitValue UnitValue.as (unitName:
string)
|