invertFromWeightUnits

fun <T : Any> invertFromWeightUnits(value: T, units: WeightUnits, cls: Class<T>): Double

Convert from units to kilograms

Return

value converted to kilograms

See also

Parameters

value

value in units

units

units for value to convert from

cls

class of converting value

T

type of value

Throws

when unit and class defined incorrectly