MetricMultipleUnit

A multiplication of a MetricBaseUnit. Example: Kilometer is a multiple of Meter

Parameters

System

the type of MeasurementSystem to use. Must have MeasurementUsage.UsedInMetric

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of MetricBaseUnit to multiply with

Inheritors

Properties

Link copied to clipboard
abstract val quantity: Quantity

The Quantity of the unit

Link copied to clipboard
abstract val symbol: String

The symbol representing the unit

Link copied to clipboard
abstract override val system: System

The MeasurementSystem the unit is used in

Functions

Link copied to clipboard
fun <Quantity : PhysicalQuantity> ScientificUnit<Quantity>.convert(value: Decimal, to: ScientificUnit<Quantity>, round: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Converts a value in a ScientificUnit to the value of another unit with the same PhysicalQuantity

fun <Quantity : PhysicalQuantity> ScientificUnit<Quantity>.convert(value: Number, to: ScientificUnit<Quantity>, round: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Double

Converts a value in a ScientificUnit to the value of another unit with the same PhysicalQuantity and rounds it

Link copied to clipboard
abstract fun fromSIUnit(value: Decimal): Decimal

Converts a value of the ScientificUnit of Quantity to be used according to the SI into a value of this unit

Link copied to clipboard
abstract fun toSIUnit(value: Decimal): Decimal

Converts a value of this unit into the value of the ScientificUnit of Quantity to be used according to the SI