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 ldeller
Recipients georg.brandl, ldeller
Date 2008-10-03.12:00:00
SpamBayes Score 0.009687879
Marked as misclassified No
Message-id <1223035202.1.0.439818891319.issue4024@psf.upfronthosting.co.za>
In-reply-to
Content
No it won't distinguish between +0.0 and -0.0 in its present form,
because these two have the same value according to the C equality
operator.  This should be easy to adjust, eg we could exclude -0.0 by
changing the comparison
    if (fval == 0.0)
into 
    static double positive_zero = 0.0;
    ...
    if (!memcmp(&fval, &positive_zero, sizeof(double)))
History
Date User Action Args
2008-10-03 12:00:02ldellersetrecipients: + ldeller, georg.brandl
2008-10-03 12:00:02ldellersetmessageid: <1223035202.1.0.439818891319.issue4024@psf.upfronthosting.co.za>
2008-10-03 12:00:00ldellerlinkissue4024 messages
2008-10-03 12:00:00ldellercreate