This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum
Date 2008-01-03.00:04:55
SpamBayes Score 0.2995708
Marked as misclassified No
Message-id <1199318695.81.0.228774290881.issue1725@psf.upfronthosting.co.za>
In-reply-to
Content
Since 1e-1000 == 0.0 (on an IEEE-754 platform anyway), I would expect
-1e-1000 to be -0.0.  But it does not appear that way:

>>> 1e-1000
0.0
>>> -0.0
-0.0
>>> -1e-1000
0.0

However (correctly):

>>> (-1.0) * 1e-1000
-0.0
>>> -(1e-1000)
-0.0

I suspect the optimization for -x where x is a float literal is
incorrectly triggering here.
History
Date User Action Args
2008-01-03 00:04:55gvanrossumsetspambayes_score: 0.299571 -> 0.2995708
recipients: + gvanrossum
2008-01-03 00:04:55gvanrossumsetspambayes_score: 0.299571 -> 0.299571
messageid: <1199318695.81.0.228774290881.issue1725@psf.upfronthosting.co.za>
2008-01-03 00:04:55gvanrossumlinkissue1725 messages
2008-01-03 00:04:55gvanrossumcreate