From ce4ed2b25cd4ead67a52cf42e05c7091aff9b3c7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 21 May 2007 20:45:46 +0000 Subject: Getting things to compile again. --- src/numerics/amount.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/numerics/amount.h') 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) 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& prec = none) const; + amount_t round() const; + amount_t round(precision_t prec) const; amount_t unround() const; amount_t reduce() const { -- cgit v1.2.3