round method

int round()

Rounds the decimal number.

Implementation

int round() {
  return (nominator / denominator).round();
}