diff --git a/commerce/common.py b/commerce/common.py index 816bfc6..c97c315 100644 --- a/commerce/common.py +++ b/commerce/common.py @@ -134,6 +134,13 @@ class FloatValue(float): value = value + ' ' + self.currency return value + def rawValue(self): + return float(self) + + def rawFormatted(self): + format = '%%.%if' % self.decimals + return (format % self) + # utility functions