On 12/25/05, Miguel Ghobangieno <[EMAIL PROTECTED]> 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@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire

Reply via email to