Quantity.value

Gets the value of this quantity when expressed in the given target unit.

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.

  1. N value(Q target)
    struct Quantity(N, alias dims)
    const
    N
    value
    (
    Q
    )
    (
    auto ref const Q target
    )
  2. N value(Q target)

Meta