Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2002:
[Freeciv-Dev] Re: server/settlers.c cleanup 3
Home

[Freeciv-Dev] Re: server/settlers.c cleanup 3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per I Mathisen <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: server/settlers.c cleanup 3
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Apr 2002 19:19:16 -0500

On Mon, Apr 15, 2002 at 12:29:28AM +0200, Per I Mathisen wrote:
> On Sun, 14 Apr 2002, Mike Kaufman wrote:
> > does the return value for amortize ever find itself in the denominator
> > of some division?
> 
> That wouldn't make any sense, since the return value of amortize is a want
> value, and want is frequently zero.

The EPSILON appears to be there only as a defense against getting a
divide by zero dump (it's ensuring that the return value of amortize is
never zero, probably not what you want).

-mike


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