You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python
Python 2.7.15 (tags/v2.7.15:ca079a3ea3, Apr 18 2019, 17:07:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import Decimal
>>> round(Decimal(4))
4.0
>>> from builtins import round
>>> round(Decimal(4))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/source/.venv/lib/python2.7/site-packages/future/builtins/newround.py", line 42, in newround
d = Decimal.from_float(number).quantize(exponent,
File "/usr/local/lib/python2.7/decimal.py", line 690, in from_float
n, d = abs(f).as_integer_ratio()
AttributeError: 'Decimal' object has no attribute 'as_integer_ratio'
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: