Function QVariant.opCast
Cast a dimensionless quantity to a numeric type.
T opCast(T)
() const
if (isNumeric!T);
The cast operation will throw DimensionException if the quantity is not dimensionless.
Cast a dimensionless quantity to a numeric type.
T opCast(T)
() const
if (isNumeric!T);
The cast operation will throw DimensionException if the quantity is not dimensionless.