[crossfire] Re: [patch] Large-denomination coins

Miguel Ghobangieno mikeeusaa at yahoo.com
Sun Dec 25 18:37:02 CST 2005


so the value in the arch might read
0.33
the server code will remove the . when reading it and
put it at 33 internally?

--- Brendan Lally <brenlally at gmail.com> wrote:

> On 12/25/05, Miguel Ghobangieno
> <mikeeusaa at yahoo.com> wrote:
> > Exactly.
> >
> > I'd like the value var to be a double so we can
> add
> > copper coins ...
> 
> That could lead to all sorts of fun rounding errors.
> 
> Probably it would be best to use a 64bit int, and
> store value*10000 or
> so - that way you could have 4 values after the
> decimal point, and
> still not have errors due to floating point maths.
> 
> _______________________________________________
> crossfire mailing list
> crossfire at metalforge.org
>
http://mailman.metalforge.org/mailman/listinfo/crossfire
> 



	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/



More information about the crossfire mailing list