toInt method

int toInt()

Truncates this Rational to an integer and returns the result as an int.

Implementation

int toInt() => toDouble().toInt();