formatAs
Formats any ScientificValue with quantity Quantity as a unit of unit Is overruled by ScientificUnit.formatAs
Parameters
unit
the ScientificUnit to which all ScientificValue of Quantity should be converted before formatting.
Type Parameters
Quantity
the PhysicalQuantity whose units should be formatted as unit
infix fun <Quantity : PhysicalQuantity> ScientificUnit<Quantity>.formatAs(unit: ScientificUnit<Quantity>)
Formats any ScientificValue of this unit into unit Overrules PhysicalQuantity.formatAs
Parameters
unit
the ScientificUnit to which this unit should be converted before formatting.
Type Parameters
Quantity
the PhysicalQuantity of the unit that should be formatted as unit