operator < method

bool operator <(
  1. BigRational other
)

Compares this BigRational with the given BigRational and returns true if this BigRational is less than the given BigRational.

other The BigRational to compare with. returns true if this BigRational is less than the given BigRational; otherwise, false.

Implementation

bool operator <(BigRational other) {
  return compareTo(other) < 0;
}