operator < method

bool operator <(
  1. Rational other
)

Checks whether this rational number is smaller than the other.

Implementation

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