diff options
| author | John Wiegley <johnw@newartisans.com> | 2007-04-19 00:00:49 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:17 -0400 |
| commit | 086ea40d9993f2ac86941a0462dabbd7f18d58f3 (patch) | |
| tree | 9b905b976c620382f9cc048655254dc23588e365 /amount.h | |
| parent | ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (diff) | |
| download | ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.gz ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.bz2 ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.zip | |
We now compile with boost_date_time (although parts of the code have
been stubbed out as a result).
Diffstat (limited to 'amount.h')
| -rw-r--r-- | amount.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -52,6 +52,19 @@ extern bool do_cleanup; class commodity_t; +/** @class amount_t + + @brief Encapsulates infinite precision commoditized amounts. + + The amount_t class can be used for commoditized infinite precision + math, and also for uncommoditized math. In the commoditized case, + commodities will keep track of how they are used, so that they + always display back to the user in the same fashion as their use. + However, in all cases precision is kept to an excessive degree + internally. For uncommoditized numbers, no display truncation is + ever done. +*/ + class amount_t { public: |
