Rational (gb.gmp)
This class represents a rational number, i.e. a BigInt number divided by another BigInt number.
It implements standard arithmetic and comparison operators (i.e. +
, -
, *
, /
, ^
, Abs
, =
, <>
, <
, >
, <=
, >=
), and provides automatic
conversions with BigInt and native Gambas numerical datatypes.