to

open infix fun to(unit: Unit<U>): Double

Converts this measure to a measure with a different unit of the same type, e.g. minutes to seconds. Converting to the same unit is equivalent to calling magnitude.

12 of Meters to Feet // 39.3701
15 of Seconds to Minutes // 0.25

Return

the value of this measure in the given unit

Parameters

unit

the unit to convert this measure to