From e90287f7f1063e9784239c5be558b7fb6cd3aa54 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 17 Sep 2011 21:16:36 -0400 Subject: COMMON: Add numerator/denominator getters for Rational --- common/rational.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') diff --git a/common/rational.h b/common/rational.h index 45aa6a7a20..8270d2194e 100644 --- a/common/rational.h +++ b/common/rational.h @@ -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: -- cgit v1.2.3