Creates a new quantity from another one with the same dimensions.
Creates a new dimensionless quantity from a number
Implicitly convert a dimensionless value to the value type.
Returns the base unit of this quantity.
Implicitly convert a dimensionless value to the value type.
Tests wheter this quantity has the same dimensions as another one.
Operator overloading
Cast a dimensionless quantity to a numeric type.
Operator overloading
Gets the value of this quantity when expressed in the given target unit.
The dimensions of the quantity
Test whether this quantity is dimensionless
the numeric type of the quantity.
QVariant has the same public members and overloaded operators as Quantity.
A quantity checked at compile-time for dimensional consistency.