format

abstract fun format(unit: U): Quantity.FormattedQuantity

Returns a FormattedQuantity representation of the value from this in the given unit.

Parameters

unit

The units U to be used for the given type.