Micro

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

Creates a unit equal to a millionth of the base unit, eg Microseconds = Micro(Units.Seconds, "Microseconds", 'us").

Return

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

Creates a unit equal to a millionth of the base unit, eg Microseconds = Micro(Units.Seconds).

Return

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