Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nmuesch committed Jan 11, 2019
1 parent 2e191a3 commit 8346e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog_checks_base/datadog_checks/base/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def ensure_unicode(s):


def round_value(value, precision=0, rounding_method=ROUND_HALF_UP):
precision = 0 if precision == 0 else '0.{}'.format('0' * precision)
precision = '0.{}'.format('0' * precision)
return float(Decimal(str(value)).quantize(Decimal(precision), rounding=rounding_method))


Expand Down

0 comments on commit 8346e93

Please sign in to comment.