diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-26 00:10:08 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-26 00:10:08 -0400 |
commit | 74e569e220bee08d6c9eda59b5e4021748344994 (patch) | |
tree | 6976db78d273adb515db5ff9be68c29c321d7811 /src/value.h | |
parent | 247cf58bfa348ba104afe9328945979c4b154e46 (diff) | |
download | fork-ledger-74e569e220bee08d6c9eda59b5e4021748344994.tar.gz fork-ledger-74e569e220bee08d6c9eda59b5e4021748344994.tar.bz2 fork-ledger-74e569e220bee08d6c9eda59b5e4021748344994.zip |
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.
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |