Imperial
@Serializable
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val quantity: PhysicalQuantity.Undefined<UndefinedQuantityType.Dividing<NumeratorQuantity, DenominatorQuantity>>
The Quantity of the unit
Link copied to clipboard
open override val quantityType: UndefinedQuantityType.Dividing<NumeratorQuantity, DenominatorQuantity>
Link copied to clipboard
The MeasurementSystem the unit is used in
Link copied to clipboard
open override val ukImperial: UndefinedDividedUnit.UKImperial<NumeratorQuantity, NumeratorUnit, DenominatorQuantity, DenominatorUnit>
Link copied to clipboard
open override val usCustomary: UndefinedDividedUnit.USCustomary<NumeratorQuantity, NumeratorUnit, DenominatorQuantity, DenominatorUnit>
Functions
Link copied to clipboard
fun <Quantity : PhysicalQuantity> ScientificUnit<Quantity>.convert(value: Decimal, to: ScientificUnit<Quantity>): Decimal
fun <Quantity : PhysicalQuantity> ScientificUnit<Quantity>.convert(value: Number, to: ScientificUnit<Quantity>): Double
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
Link copied to clipboard
Link copied to clipboard
Converts a value of the ScientificUnit of Quantity to be used according to the SI into a value of this unit