This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author squeakbat
Recipients squeakbat
Date 2013-04-29.03:29:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367206166.88.0.195054463405.issue17865@psf.upfronthosting.co.za>
In-reply-to
Content
This is only on a PowerPC, specifically a p2020, running Debian 7.0 wheezy, python 2.7.3.

Calling round() seems to corrupt something (in the floating point state?) that causes subsequent exponentiation (the ** operator) to be wrong:

Python 2.7.3 (default, Jan  2 2013, 16:38:11)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 ** -2
0.25
>>> round(1)
1.0
>>> 2 ** -2
0.1253019036571362

Cool.  Huh?
History
Date User Action Args
2013-04-29 03:29:26squeakbatsetrecipients: + squeakbat
2013-04-29 03:29:26squeakbatsetmessageid: <1367206166.88.0.195054463405.issue17865@psf.upfronthosting.co.za>
2013-04-29 03:29:26squeakbatlinkissue17865 messages
2013-04-29 03:29:26squeakbatcreate