Product

The product of two compile-time rational numbers.

@safe
template Product (
Lhs
Rhs
) if (
isRational!Lhs &&
isRational!Rhs
) {}

Members

Aliases

Product
alias Product = Rational!(Lhs.numerator * Rhs.numerator, Lhs.denominator * Rhs.denominator)
Undocumented in source.

Examples

static assert(is(Product!(Rational!(3, 2u), Rational!(2, 3u)) == Rational!1));

Meta