new Unit(unitSymbol, quantityKindopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
unitSymbol | $k.SemanticElement | the (symbol of the) unit defining element | |
quantityKind | $k.QuantityKind | <optional> | the (optional) quantity kind of the unit |
Methods
name() → {string}
- Since
- 5.4.2
Returns:
The unit/quantity name
- Type:
- string
quantityKind() → {$k.QuantityKind}
- Since
- 5.4.2
Returns:
The quantity kind
- Type:
- $k.QuantityKind
symbol() → {string}
- Since
- 5.4.2
Returns:
The unit/quantity symbol
- Type:
- string