[issue14521] math.copysign(1., float('nan')) returns -1.

Mark Dickinson report at bugs.python.org
Mon Apr 9 20:13:01 CEST 2012


Mark Dickinson <dickinsm at gmail.com> added the comment:

> May be it would be more reasonable if math.copysign(1., float('nan')) 
> return a float('nan')?

-1.  That would go against all the existing standards.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14521>
_______________________________________


More information about the Python-bugs-list mailing list