BaseUnit
Extends
Methods
-
abstract dimensions() → {Dimensions}
-
Returns the Dimensions of this Unit.
Returns:
Dimensions- Overrides:
-
abstract expression() → {UnitExpression}
-
Returns:
UnitExpression- Overrides:
- Deprecated:
- Yes
- To Do:
-
- remove this method from Unit
-
abstract isBaseUnit() → {boolean}
-
Returns true if this Unit is an instance of BaseUnit, or false if it is an instance of DerivedUnit.
Returns:
boolean- Overrides:
-
name() → {string}
-
The name of the Unit.
Returns:
string- Inherited From:
-
scale() → {number}
-
The scale of the Unit.
Returns:
number- Inherited From:
-
symbol() → {string}
-
The symbol of the Unit, used in toString() representations. For instance, the symbol for "meter" is "m".
Returns:
string- Inherited From:
-
toString() → {string}
-
Returns the string representation of the Unit (which is typically its symbol).
Returns:
string- Inherited From:
-
type() → {UnitType}
-
Returns:
UnitType