Checks whether this rational number is smaller than the other.
bool operator <(Rational other) => toDouble() < other.toDouble();