floor method
Floors this fraction to an integer.
Implementation
int floor() => !isFinite
? toDouble().floor()
: (a >= 0 || a % b == 0)
? a ~/ b
: (a ~/ b) - 1;
Floors this fraction to an integer.
int floor() => !isFinite
? toDouble().floor()
: (a >= 0 || a % b == 0)
? a ~/ b
: (a ~/ b) - 1;