diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 04:57:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 04:57:24 -0400 |
commit | 5a4478481795ac0460c7d9d2e8f90986bee3aece (patch) | |
tree | b3362621bd701b079864d3d1759b28b144cbf2d4 /src/amount.h | |
parent | e9ff5caa13e2d60681010dbedcf56459ee7521a4 (diff) | |
download | fork-ledger-5a4478481795ac0460c7d9d2e8f90986bee3aece.tar.gz fork-ledger-5a4478481795ac0460c7d9d2e8f90986bee3aece.tar.bz2 fork-ledger-5a4478481795ac0460c7d9d2e8f90986bee3aece.zip |
Removed the special "one" variable, and added amount_t::inverted().
Diffstat (limited to 'src/amount.h')
-rw-r--r-- | src/amount.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.h b/src/amount.h index 7e4f832c..ef9fc4b0 100644 --- a/src/amount.h +++ b/src/amount.h @@ -346,6 +346,8 @@ public: return *this; } + amount_t inverted() const; + /** Yields an amount whose display precision when output is truncated to the display precision of its commodity. This is normally the default state of an amount, but if one has become unrounded, this @@ -740,8 +742,6 @@ public: /*@}*/ }; -extern amount_t * one; - inline amount_t amount_t::exact(const string& value) { amount_t temp; temp.parse(value, PARSE_NO_MIGRATE); |