We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 228a297 + a1d6cd3 commit a3e3008Copy full SHA for a3e3008
src/future/builtins/newround.py
@@ -38,7 +38,7 @@ def newround(number, ndigits=None):
38
if 'numpy' in repr(type(number)):
39
number = float(number)
40
41
- if isinstance(d, Decimal):
+ if isinstance(number, Decimal):
42
d = number
43
else:
44
if not PY26:
0 commit comments