Commits

Armin Ronacher  committed acc51af Merge

Merged in fix for Python 3 regarding precisions

  • Participants
  • Parent commits 39d78dc, 465a3ed

Comments (0)

Files changed (1)

File 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