6.2. Rational numbers

Rational numbers are contructed with the builtin function rational, which takes long integer arguments, the numerator and denominator. Rationals support addition, multiplication, division, remainder and power operations. They support left and right shifting as multiplication and division by powers of two. Bit mask operations are not supported.