diff options
Diffstat (limited to 'lulua/report.py')
-rw-r--r-- | lulua/report.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lulua/report.py b/lulua/report.py index 200bb9b..b6c6f7e 100644 --- a/lulua/report.py +++ b/lulua/report.py @@ -14,7 +14,7 @@ def approx (i): units = ['', 'thousand', 'million', 'billion'] base = Decimal (1000) i = Decimal (i) - while i >= base and len (units) > 1: + while round (i, 1) >= base and len (units) > 1: i /= base units.pop (0) return round (i, 1), units[0] |