convertFrom

fun convertFrom(fromUnit: LinearUnit, value: Double): Double

Converts a value in another UOM into this UOM.

Return

The value in this UOM or NAN if the conversion fails.

Since

200.1.0

Parameters

fromUnit

The UOM to convert from.

value

The value to convert.