[issue17865] PowerPC exponentiation and round() interaction

2013-04-29 Thread Ellen Wang
Ellen Wang added the comment: OK. My bad. I should have been tipped off that the program didn't need -lm to link. Output from C code: 0.135335 1 0.239022 Feel free to close. I'll have to look into this on my own. Thanks and sorry

[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang
New submission from Ellen Wang: 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

[issue17865] PowerPC exponentiation and round() interaction

2013-04-28 Thread Ellen Wang
Ellen Wang added the comment: 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