Quantity
A base interface for quantities. Outlines the common operations to retrieve values and perform mathematical operations.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
The quantity type implementing this interface.
An enum type that contains the units that the quantity's values can be in.
Types
The options for how decimals should be treated in a string representation of a quantity.
The options for how a unit should be suffixed in a string representation of a quantity.
Functions
Returns a string representation for the value from this
with the given unit. Depending on decimalsMode, it will show either exactly or at most decimals amount of decimals after the separator. The unit will be suffixed depending on suffixMode.
Returns a new instance with the value from this
as negative.