Creates a new quantity from another one with the same dimensions
Creates a new dimensionless quantity from a number
Returns the base unit of this quantity.
Returns the dimensions of the quantity
Implicitly convert a dimensionless value to the value type.
Tests wheter this quantity has the same dimensions as another one.
Test whether this quantity is dimensionless
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 numeric type of the quantity.
QVariant has the same public members and overloaded operators as Quantity.
A dimensionnaly variant quantity.