Message74243
| 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:02 | ldeller | set | recipients:
+ ldeller, georg.brandl |
| 2008年10月03日 12:00:02 | ldeller | set | messageid: <1223035202.1.0.439818891319.issue4024@psf.upfronthosting.co.za> |
| 2008年10月03日 12:00:00 | ldeller | link | issue4024 messages |
| 2008年10月03日 12:00:00 | ldeller | create |
|