of

infix fun <U : Unit<U>> Number.of(unit: Unit<U>): Measure<U>

Creates a new measure of this unit with the given value. The resulting measure is immutable and cannot have its value modified.

Return

the measure object as associated with the given number