Agreed with Lukas, floating point variables, even double precision, just aren't for book keeping There are some excellent libraries out there for keeping track of values without the loss of precision (for example in boost)


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com