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 dims)
const
static if(isDimensionless)
T
opCast
(
T
)
()
if (
isNumeric!T
)

Meta