toInt method

int toInt()

Converts this fraction to an integer.

Implementation

int toInt() => a ~/ b;