Function Quantity.value
Gets the value of this quantity when expressed in the given target unit.
N value(Q)
(
auto const ref Q target
) const
if (isQuantity!Q);
N value(Q)
(
auto const ref Q target
) const
if (isQVariant!Q);
If Q is a QVariant, throws a DimensionException if the parsed quantity doesn't have the same dimensions as Q. If Q is a Quantity, inconsistent dimensions produce a compilation error.