in

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

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.

For Kotlin users, calling this method can be done with the notation \`in\` (see here), or by calling the alias to.

Meters.of(12).in(Feet) // 39.3701
Seconds.of(15).in(Minutes) // 0.25

Return

the value of this measure in the given unit

Parameters

unit

the unit to convert this measure to