diff options
author | Craig Earls <enderw88@gmail.com> | 2012-10-25 22:28:26 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2012-10-25 22:28:26 -0700 |
commit | b044a74bd34afdc27baf6241fe398690ff5e043a (patch) | |
tree | 6cf2168e51611a86e04d834b2a507322a8a8fe04 /src/value.h | |
parent | 4b261f99bc56853b3468a8a1bb5b4af39ed67af5 (diff) | |
download | fork-ledger-b044a74bd34afdc27baf6241fe398690ff5e043a.tar.gz fork-ledger-b044a74bd34afdc27baf6241fe398690ff5e043a.tar.bz2 fork-ledger-b044a74bd34afdc27baf6241fe398690ff5e043a.zip |
Bug 634 and 488, Corrected behavior of floor, and added ceiling
This is only a partial fix for 634, since rounding is not fixed.
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h index ee3d414d..249f3d7f 100644 --- a/src/value.h +++ b/src/value.h @@ -457,6 +457,13 @@ public: } void in_place_floor(); + value_t ceilinged() const { + value_t temp(*this); + temp.in_place_ceiling(); + return temp; + } + void in_place_ceiling(); + value_t unrounded() const { value_t temp(*this); temp.in_place_unround(); |