aboutsummaryrefslogtreecommitdiff
path: root/common/rational.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rational.h')
-rw-r--r--common/rational.h3
1 files changed, 3 insertions, 0 deletions
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: