diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-20 23:23:22 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-20 23:23:22 -0500 |
commit | bd455c98743ce354b875d67a1d607a682d604fe0 (patch) | |
tree | 8f06ee6e3833b519f7e6dadc12157fe7500e85a4 /src/amount.h | |
parent | 92d2310548e8e51b6496385d8808cca8eaf1aa04 (diff) | |
download | fork-ledger-bd455c98743ce354b875d67a1d607a682d604fe0.tar.gz fork-ledger-bd455c98743ce354b875d67a1d607a682d604fe0.tar.bz2 fork-ledger-bd455c98743ce354b875d67a1d607a682d604fe0.zip |
Added string conversion op for amounts and balances
Diffstat (limited to 'src/amount.h')
-rw-r--r-- | src/amount.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h index a8c08905..a37efdb8 100644 --- a/src/amount.h +++ b/src/amount.h @@ -496,6 +496,9 @@ public: long to_long() const; bool fits_in_long() const; + operator string() const { + return to_string(); + } string to_string() const; string to_fullstring() const; string quantity_string() const; |