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:57:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367207830.24.0.11213032389.issue17865@psf.upfronthosting.co.za>
In-reply-to
Content
Here's an example that uses only math library functions and float literals, presumably with a simpler code path:

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.
>>> import math
>>> math.exp(-2.0)
0.1353352832366127
>>> math.ceil(1.0)
1.0
>>> math.exp(-2.0)
0.23902241864785234

By the way, the equivalent C program (using exp() and ceil()) on the same platform behaves correctly, so it's not an obvious libc or fpu problem.
History
Date User Action Args
2013-04-29 03:57:10squeakbatsetrecipients: + squeakbat
2013-04-29 03:57:10squeakbatsetmessageid: <1367207830.24.0.11213032389.issue17865@psf.upfronthosting.co.za>
2013-04-29 03:57:10squeakbatlinkissue17865 messages
2013-04-29 03:57:09squeakbatcreate