You could also try to use a Kahan Accumulator to 'fix' this problem.

See wikipedia: http://en.wikipedia.org/wiki/Kahan_summation_algorithm

Its pretty straight forward to implement.

Gr,
Danny Arends
http://www.dannyarends.nl

Reply via email to