thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

Corner case problem for Python int() and numpy.float128 (Trac #2171) #5961

Open numpy-gitbot opened 11 years ago

numpy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2171 on 2012-06-19 by trac user edcjones, assigned to unknown.

I use up-to-date Debian testing (wheezy) linux, amd64 architecture. I have installed packages python3.2, version 3.2.3~rc2-1 and python3-numpy, version 1:1.6.2-1.

I got the same answers with packages python2.7, version 2.7.3~rc2-2.1, and python-numpy, version 1:1.6.2-1.

Create a numpy.float128 scalar whose value is 2**64 - 1, and call it "x". int(x) is incorrect.

numpy-gitbot commented 11 years ago

Attachment added by trac user edcjones on 2012-06-19: z15.py