ImperialYank

@Serializable
data class ImperialYank(val force: ImperialForce, val per: Time) : Yank, ImperialScientificUnit<PhysicalQuantity.Yank>

A Yank for MeasurementSystem.Imperial

Parameters

force

the ImperialForce component

per

the Time component

Constructors

Link copied to clipboard
constructor(force: ImperialForce, per: Time)

Properties

Link copied to clipboard
open override val force: ImperialForce
Link copied to clipboard
open override val per: Time
Link copied to clipboard
open override val quantity: PhysicalQuantity.Yank

The Quantity of the unit

Link copied to clipboard
open override val symbol: String

The symbol representing the unit

Link copied to clipboard

The MeasurementSystem the unit is used in

Link copied to clipboard
Link copied to clipboard

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
open override 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
open override 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