Skip to content

Commit

Permalink
fix : rounder fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed May 29, 2018
1 parent 66b097f commit f4f729f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycm/pycm_output.py
Expand Up @@ -220,7 +220,7 @@ def rounder(input_number, digit=5):
tuple_str = []
for i in tuple_list:
if isfloat(i):
tuple_str.append(str(round(i, digit)))
tuple_str.append(str(float(round(i, digit))))
else:
tuple_str.append(str(i))
return "(" + ",".join(tuple_str) + ")"
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
@@ -1,4 +1,4 @@
# content of pytest.ini
[pytest]
addopts = --doctest-modules
doctest_optionflags= NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL FLOAT_CMP
doctest_optionflags= NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL

0 comments on commit f4f729f

Please sign in to comment.