operator <= method

bool operator <=(
  1. Rational other
)

Checks whether this rational number is smaller or equal than the other.

Implementation

bool operator <=(Rational other) => toDouble() <= other.toDouble();