r

Exploits UFCS to provide fraction-like syntax sugar when initializing Rational numbers.

r
(
Z
)
(
Z num
)

Examples

auto ratio = 2 / 4.r;
assert(ratio == Rational!int(2, 4));