abs method

Rat abs()

Returns the absolute value of this Rat.

Implementation

Rat abs() {
  return Rat(n.abs(), d);
}