COMMON: Add numerator/denominator getters for Rational

This commit is contained in:
Matthew Hoops 2011-09-17 21:16:36 -04:00
parent 331da0377b
commit e90287f7f1

View File

@ -80,6 +80,9 @@ public:
double toDouble() const;
frac_t toFrac() const;
int getNumerator() const { return _num; }
int getDenominator() const { return _denom; }
void debugPrint(int debuglevel = 0, const char *caption = "Rational:") const;
private: