diff options
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 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(); |