diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 04:25:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 04:25:05 -0400 |
commit | e9ff5caa13e2d60681010dbedcf56459ee7521a4 (patch) | |
tree | 056a124c232daccb3dcc616a32fb3b2a9c217d86 /src/value.h | |
parent | c96ab6cb0fb289cd50fb239ba44c01aba131fc18 (diff) | |
download | fork-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.h | 8 |
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); |