Ticket #87 (closed defect: wontfix)
floating point equality test
| Reported by: | alain | Owned by: | gnugo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | source | Version: | |
| Severity: | trivial | Keywords: | |
| Cc: | patch: | no |
Description (last modified by alain) (diff)
GNU Go 3.7.8 compiled with icc9.0 -w2 (more verbose) gives this remark: floating-point equality and inequality comparisons are unreliable
The list of occurences is in attachement
Attachments
Regression Results
| Attachment | Rev. | PASS | FAIL | Nodes | Status |
Change History
comment:3 Changed 6 years ago by gunnar
Well, these warnings are not terribly useful. The compiler is correct in principle that floating point comparisons are unreliable in a platform dependency sense, but it has no idea whether each specific case is problematic. We have had problems with this, and we probably still have, but the only feasible way to avoid all the warnings is to stop using floating point numbers at all, which would simply be too impractical.
Note: See
TracTickets for help on using
tickets.


genmove.c(685): remark #1572: floating-point equality and inequality comparisons are unreliable