operator unary- method

Rat operator unary-()

Returns the negation of this Rat.

Implementation

Rat operator -() {
  return Rat(-n, d);
}