UnitValue

Represents a measurement as a combination of values and unit.

Note that this object is not available in all applications.

Methods:

as, convert

Objects:

Number, String, UnitValue

Property Listing

Property

Type

Access

Description

baseUnit

UnitValue

read/write

The base unit.

type

String

readonly

The unit name.

value

Number

read/write

The numeric value.

Property Listing

Name

Type

Access

Description

baseUnit

UnitValue

readonly

The base unit for all conversions.

Method Listing

UnitValue as (unitName:String)

Returns this instance as a different unit.

Parameter

Type

Description

unitName

String

The unit name.

Varies convert (unitName:String)

Converts this instance to a different unit.

Parameter

Type

Description

unitName

String

The unit name.

Object of

UnitValue.baseUnit

UnitValue.baseUnit

Return

UnitValue.as()