[docs] [issue12211] Better document math.copysign behavior.

Mark Dickinson 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>
<http://bugs.python.org/issue12211>
_______________________________________


More information about the docs mailing list