summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-11 14:45:14 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-11 14:45:14 -0500
commita034435c4287aba7fd32ed63a745e560350c924a (patch)
treef0acb080410a32c215c2c1938811cc14d512b580 /src/value.h
parent5ffa987daf4d97c52066e4c28733d826d3726297 (diff)
parentf0f1b0cdfa3a0a73695eda52b25de71bd40adc5a (diff)
downloadledger-a034435c4287aba7fd32ed63a745e560350c924a.tar.gz
ledger-a034435c4287aba7fd32ed63a745e560350c924a.tar.bz2
ledger-a034435c4287aba7fd32ed63a745e560350c924a.zip
Merge branch 'next'
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index 96a3078a..2a420cd3 100644
--- a/src/value.h
+++ b/src/value.h
@@ -440,6 +440,13 @@ public:
}
void in_place_truncate();
+ value_t floored() const {
+ value_t temp(*this);
+ temp.in_place_floor();
+ return temp;
+ }
+ void in_place_floor();
+
value_t unrounded() const {
value_t temp(*this);
temp.in_place_unround();