toNearestQuarter method
Rounds the rational number to the nearest quarter
Parameters:
mode: The rounding mode to apply. Defaults to RoundingMode.halfUp
Returns: The rounded rational number
Implementation
Rational toNearestQuarter([RoundingMode mode = RoundingMode.halfUp]) {
return toNearest(RationalConstants.quarter, mode: mode);
}