floor method

int floor()

Floors this fraction to an integer.

Implementation

int floor() => !isFinite
    ? toDouble().floor()
    : (a >= 0 || a % b == 0)
    ? a ~/ b
    : (a ~/ b) - 1;