[issue17865] PowerPC exponentiation and round() interaction
Mark Dickinson
report at bugs.python.org
Mon Apr 29 09:21:10 CEST 2013
Mark Dickinson added the comment:
Hmm: it's not an obvious Python bug, either: both math.exp and math.ceil are simple wrappers around the libm functions, so there's little room for things to go wrong between Python and the OS.
Are you in a position to compile Python from source on your platform?
What was the equivalent C program you tried? What's the compiler on this platform? Note that gcc (I believe) evaluates math function calls for constants at compile time (using MPFR), rather than run time, which would mean if your C program simply does "exp(-2.0);" then it's not even using the OS libm.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17865>
_______________________________________
More information about the Python-bugs-list
mailing list