summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-31 04:25:05 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-31 04:25:05 -0400
commite9ff5caa13e2d60681010dbedcf56459ee7521a4 (patch)
tree056a124c232daccb3dcc616a32fb3b2a9c217d86 /src/value.h
parentc96ab6cb0fb289cd50fb239ba44c01aba131fc18 (diff)
downloadfork-ledger-e9ff5caa13e2d60681010dbedcf56459ee7521a4.tar.gz
fork-ledger-e9ff5caa13e2d60681010dbedcf56459ee7521a4.tar.bz2
fork-ledger-e9ff5caa13e2d60681010dbedcf56459ee7521a4.zip
Rationals based math is now passing the unit tests.
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/value.h b/src/value.h
index bb04508e..069a3c46 100644
--- a/src/value.h
+++ b/src/value.h
@@ -404,11 +404,9 @@ public:
}
value_t abs() const;
-#ifdef INTEGER_MATH
- value_t round() const;
- void in_place_round();
-#endif
- value_t unround() const;
+
+ value_t rounded() const;
+ value_t unrounded() const;
value_t reduce() const {
value_t temp(*this);