compareTo

open operator override fun compareTo(other: Rational): Int

Exact comparison: Rational(1, 30) < Rational(1, 25).