to
Converts this measure to a measure with a different unit of the same type, eg minutes to seconds. Converting to the same unit is equivalent to calling magnitude.
Meters.of(12).in(Feet) // 39.3701
Seconds.of(15).in(Minutes) // 0.25
Content copied to clipboard
Return
the value of this measure in the given unit
Parameters
unit
the unit to convert this measure to