Milli

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

Creates a unit equal to a thousandth of the base unit, eg Milliseconds = Milli(Units.Seconds).

Return

the milli-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>?> Milli(baseUnit: Unit<U>): U

Creates a unit equal to a thousandth of the base unit, eg Milliseconds = Milli(Units.Seconds).

Return

the milli-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