50 #ifndef COMMON_RATIONAL_H 51 #define COMMON_RATIONAL_H Rational & operator=(const Rational &right)
A simple rational class that holds fractions.
const Rational operator*(const Rational &right) const
bool operator!=(const Rational &right) const
Rational & operator/=(const Rational &right)
Rational & operator-=(const Rational &right)
const Rational operator-(int left, const Rational &right)
bool operator<=(const Rational &right) const
bool operator<(int left, const Rational &right)
const Rational operator*(int left, const Rational &right)
const Rational operator/(const Rational &right) const
bool operator<=(int left, const Rational &right)
bool operator>(const Rational &right) const
bool operator>=(int left, const Rational &right)
bool operator==(const Rational &right) const
Rational & operator+=(const Rational &right)
int getDenominator() const
const Rational operator+(const Rational &right) const
bool operator==(int left, const Rational &right)
const Rational operator/(int left, const Rational &right)
bool operator>(int left, const Rational &right)
Rational & operator*=(const Rational &right)
bool operator!=(int left, const Rational &right)
bool operator>=(const Rational &right) const
const Rational operator+(int left, const Rational &right)
bool operator<(const Rational &right) const
Rational getInverse() const
const Rational operator-() const