convertTo

fun convertTo(toUnit: LinearUnit, value: Double): Double

Converts a value in this UOM into another UOM.

Return

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

Since

200.1.0

Parameters

toUnit

The UOM to convert to.

value

The value to convert.