Message211327
Actually ISTM the 'if x is NaN' sentence can also go; it seems to just copy the sign bit no matter what x and y are.
>>> from math import *
>>> nan = float('nan')
>>> neg = -nan
>>> copysign(+1, copysign(nan, neg))
-1.0 |
|
Date |
User |
Action |
Args |
2014-02-16 16:26:15 | akuchling | set | recipients:
+ akuchling, terry.reedy, mark.dickinson, r.david.murray, sandro.tosi, docs@python, python-dev, umedoblock |
2014-02-16 16:26:15 | akuchling | set | messageid: <1392567975.6.0.548453410627.issue12211@psf.upfronthosting.co.za> |
2014-02-16 16:26:15 | akuchling | link | issue12211 messages |
2014-02-16 16:26:15 | akuchling | create | |
|