[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] float's in surround.c

From: bump
Subject: Re: [gnugo-devel] float's in surround.c
Date: Mon, 18 Nov 2002 11:02:17 -0800

> Dan, are you sure you aren't introducing new potential floating point
> problems in surround.c?
> It seems trivial to implicitly use rational numbers instead.
> Yes I know, it would be pretty strange for a floating point calculation
> to come up e.g. with
>       15.0/5.0 = 2.99999998,
> but...I wouldn't like to bet 10:1 that this cannot happen on any

I'm not sure what you are referring to. I don't see anything in
the surround_3_12.1 that this comment could apply to.

Where floating point will be necessary is in computing the
strategic effect when a surround escape move reason is found,
but that is not very  different from what we already do with the
strategic attack/defend move reasons.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]