Skip to content

Commit

Permalink
Revert "Update util.py"
Browse files Browse the repository at this point in the history
This reverts commit f1feb77.

Conflicts:
	pygal/util.py
  • Loading branch information
paradoxxxzero committed Nov 21, 2014
1 parent f226fac commit 2744a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def humanize(number):
"""Format a number to engineer scale"""
if is_list_like(number):
return', '.join(map(humanize, number))
order = number and int(log10(abs(number)) / 3.0)
order = number and int(floor(log(abs(number)) / log(1000)))
human_readable = ORDERS.split(" ")[int(order > 0)]
if order == 0 or order > len(human_readable):
return float_format(number / (1000 ** int(order)))
Expand Down

0 comments on commit 2744a28

Please sign in to comment.