operator <= method

bool operator <=(
  1. BigRational other
)

Checks if this BigRational is less than or equal to the given BigRational.

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

Implementation

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