round method

BigInt round()

Returns the integer closest to this Rat.

Implementation

BigInt round() {
  return ((abs() + half).truncate()) * BigInt.from(sign);
}