From 74e569e220bee08d6c9eda59b5e4021748344994 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 26 Feb 2009 00:10:08 -0400 Subject: Added a truncated() method for amounts and values When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed. --- src/value.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 85e4a714..4d019450 100644 --- a/src/value.h +++ b/src/value.h @@ -410,6 +410,7 @@ public: value_t abs() const; value_t rounded() const; + value_t truncated() const; value_t unrounded() const; value_t reduced() const { -- cgit v1.2.3