[crossfire] Re: [patch] Large-denomination coins
Brendan Lally
brenlally at gmail.com
Sun Dec 25 16:39:28 CST 2005
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.
More information about the crossfire
mailing list