toNearestQuarter method

Rational toNearestQuarter([
  1. RoundingMode mode = RoundingMode.halfUp
])

Rounds the rational number to the nearest quarter

Parameters:

Returns: The rounded rational number

Implementation

Rational toNearestQuarter([RoundingMode mode = RoundingMode.halfUp]) {
  return toNearest(RationalConstants.quarter, mode: mode);
}