Quantity.opCast

Cast a dimensionless quantity to a numeric type.

The cast operation will throw DimensionException if the quantity is not dimensionless.

struct Quantity(N, alias unitSpec)
const
static if(unit.isDimensionless)
T
opCast
(
T
)
()
if (
isNumeric!T
)

Meta