[New-bugs-announce] [issue22590] math.copysign buggy with nan under Windows

Antoine Pitrou report at bugs.python.org
Thu Oct 9 21:19:23 CEST 2014


New submission from Antoine Pitrou:

Z:\>c:\Python27\python.exe
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import math
>>> math.copysign(0.0, float("nan"))
-0.0
>>> ^Z

Z:\>c:\Python34\python.exe
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.copysign(0.0, float("nan"))
0.0
>>> ^Z

----------
components: Library (Lib), Windows
messages: 228894
nosy: mark.dickinson, pitrou, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: math.copysign buggy with nan under Windows
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list