Skip to content

Commit a3e3008

Browse files
authored
Merge pull request #521 from tpict/fix-round-again
Fix typo in newround
2 parents 228a297 + a1d6cd3 commit a3e3008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future/builtins/newround.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def newround(number, ndigits=None):
3838
if 'numpy' in repr(type(number)):
3939
number = float(number)
4040

41-
if isinstance(d, Decimal):
41+
if isinstance(number, Decimal):
4242
d = number
4343
else:
4444
if not PY26:

0 commit comments

Comments
 (0)