Kilo

open fun <U : Unit<U>?> Kilo(baseUnit: Unit<U>, name: String, symbol: String): U

Creates a unit equal to a thousand of the base unit, eg Kilograms = Kilo(Units.Grams).

Return

the kilo-unit

Parameters

<U>

the type of the unit

baseUnit

the unit being derived from. This does not have to be the base unit of measure

name

the name of the new derived unit

symbol

the symbol of the new derived unit


open fun <U : Unit<U>?> Kilo(baseUnit: Unit<U>): U

Creates a unit equal to a thousand of the base unit, eg Kilograms = Kilo(Units.Grams).

Return

the kilo-unit

Parameters

<U>

the type of the unit

baseUnit

the unit being derived from. This does not have to be the base unit of measure