summaryrefslogtreecommitdiff
path: root/src/numerics/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-21 20:45:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:39:07 -0400
commitce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7 (patch)
tree6c5f1667b5bfc908e903f1bc204c7f18d8bd419b /src/numerics/amount.h
parentd23ed020abf494a046b499cdce1c0957cd5b4783 (diff)
downloadfork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.tar.gz
fork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.tar.bz2
fork-ledger-ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7.zip
Getting things to compile again.
Diffstat (limited to 'src/numerics/amount.h')
-rw-r--r--src/numerics/amount.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/numerics/amount.h b/src/numerics/amount.h
index 1c8ef6d0..158b8b8a 100644
--- a/src/numerics/amount.h
+++ b/src/numerics/amount.h
@@ -294,8 +294,8 @@ public:
* abs() returns the absolute value of an amount. It is equivalent
* to: `(x < 0) ? - x : x'.
*
- * round(optional<precision_t>) rounds an amount's internal value to
- * the given precision, or to the commodity's current display
+ * round(precision_t) and round() round an amount's internal value
+ * to the given precision, or to the commodity's current display
* precision if no precision value is given. This method changes
* the internal value of the amount, if it's internal precision was
* greater than the rounding precision.
@@ -347,7 +347,8 @@ public:
return *this;
}
- amount_t round(const optional<precision_t>& prec = none) const;
+ amount_t round() const;
+ amount_t round(precision_t prec) const;
amount_t unround() const;
amount_t reduce() const {