[docs] [issue12211] Better document math.copysign behavior.
report at bugs.python.org
Sun Feb 16 17:35:31 CET 2014
Mark Dickinson added the comment:
> It seems to just copy the sign bit no matter what x and y are.
Yep, that's exactly what happens. The sign bit from y just gets blindly transferred to x, with no regard to any meaning of x or y. So it works exactly the same way for zeros, NaNs, infinities, or whatever.
Python tracker <report at bugs.python.org>
More information about the docs