From afe87280e091d4f094f068c5f21aecccd2d1831b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Nov 2009 03:39:53 -0500 Subject: Added floored() and in_place_floor() methods --- src/value.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/value.h') 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(); -- cgit v1.2.3