convert

open fun convert(@NonNull value: BigDecimal, @NonNull from: Unit, @NonNull to: Unit): BigDecimal

Converts a given value from one unit to another.

Returns the same value if a conversion is not possible. (e.g. KILOGRAM -> MILLIMETER)