Message75004
None of these calculations are going to work out exactly. Look-up "what
every computer scientist needs to know about floating point" and see the
floating-point appendix in the Python tutorial. In this case, the
difference is only one bit in the last place:
>>> 0.70710678118654746.hex()
'0x1.6a09e667f3bccp-1'
>>> 0.70710678118654757.hex()
'0x1.6a09e667f3bcdp-1' |
|
Date |
User |
Action |
Args |
2008-10-20 20:35:33 | rhettinger | set | recipients:
+ rhettinger, bubersson |
2008-10-20 20:35:33 | rhettinger | set | messageid: <1224534933.58.0.671052241373.issue4155@psf.upfronthosting.co.za> |
2008-10-20 20:35:32 | rhettinger | link | issue4155 messages |
2008-10-20 20:35:32 | rhettinger | create | |
|