davidfischer-ch / pytoolbox

Toolbox for Python scripts.
Other
41 stars 15 forks source link

Humanize: handle abs(number) < 1 #19

Closed davidfischer-ch closed 10 years ago

davidfischer-ch commented 10 years ago

Replace log(number or 1) by log(max(1, number))