summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-19 00:00:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:17 -0400
commit086ea40d9993f2ac86941a0462dabbd7f18d58f3 (patch)
tree9b905b976c620382f9cc048655254dc23588e365 /amount.h
parentba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (diff)
downloadledger-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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/amount.h b/amount.h
index c6160c93..8c4a612d 100644
--- a/amount.h
+++ b/amount.h
@@ -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: