[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] ticket 87, floating point comparison
From: |
alain Baeckeroot |
Subject: |
Re: [gnugo-devel] ticket 87, floating point comparison |
Date: |
Thu, 9 Feb 2006 19:36:23 +0100 |
User-agent: |
KMail/1.9.1 |
Hi Arend
Le Mercredi 8 Février 2006 17:49, Arend Bayer a écrit :
> I think it is better for readability to leave it as it is; I have reviewed
> the complaints and these comparisons are in fact all safe (*). For example,
> consider:
>
> if (q->white_strength[ii] == 0.0)
>
> The array white_strength is initialized to 0. Then some of the fields
> are set to some numbers like 100.0 or 60.0. A field that was set to
> s.th. non-zero will always compare unequal to zero, whereas s.th. left
> unchanged will always compare equal to 0.0.
>
Ok i do nothing, and will remember this.
Thanks
Alain