[docs] [issue12211] Better document math.copysign behavior.
report at bugs.python.org
Sun Feb 16 17:26:15 CET 2014
A.M. Kuchling added the comment:
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))
Python tracker <report at bugs.python.org>
More information about the docs