toInt method

int toInt()

Implementation

int toInt() => denominator == 0 ? 0 : numerator ~/ denominator;