from

infix fun <U : Unit<U>> Unit<U>.from(conversion: Pair<Double, Unit<U>>): Double

Converts a magnitude in terms of this unit to a magnitude in terms of another unit of the same dimension.

Inches.convertTo(144, Feet) // 12.0
Kilograms.convertTo(1, Pounds) // 2.20462

Return

the corresponding value in terms of the other unit.

Parameters

conversion

a pair of the magnitude and the unit to convert to