floor method

Rational floor()

Returns the greatest integer value no greater than this num.

Implementation

Rational floor() =>
    isInteger ? truncate() : isNegative ? (truncate() - _r1) : truncate();