simplify method

void simplify()

Implementation

void simplify() {
  final d = numerator.gcd(denominator);
  if (d != 0) {
    numerator ~/= d;
    denominator ~/= d;
  }
}