Message188033
| 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:26 | squeakbat | set | recipients:
+ squeakbat |
| 2013年04月29日 03:29:26 | squeakbat | set | messageid: <1367206166.88.0.195054463405.issue17865@psf.upfronthosting.co.za> |
| 2013年04月29日 03:29:26 | squeakbat | link | issue17865 messages |
| 2013年04月29日 03:29:26 | squeakbat | create |
|