Commits

Armin Ronacher committed acc51af Merge

Merged in fix for Python 3 regarding precisions

Comments (0)

Files changed (1)

jinja2/filters.py

     if method == 'common':
         return round(value, precision)
     func = getattr(math, method)
-    if precision:
-        return func(value * (10 ** precision)) / (10 ** precision)
-    else:
-        return func(value)
+    return func(value * (10 ** precision)) / (10 ** precision)
 
 
 @environmentfilter