I used Kahan_summation_algorithm to sum array of floats. Usually it work well, but there is an issue when i try to sum at least two of them 0.1 + 0.2 in js it gives 0.30000000000000004, even when i increase elements in array to force using err variable. Also tested duplication of items and negation them [0.1, 0.2, 0.1, 0.2, -0.1, -0.2] For now i starts using fixed number by multiplying by power of 10, but this is slower and works only when i know precision, i consider to combine those algorithm.
I need working algorithm for summation floats in all cases, in most Kahan algorithm works but for 0.1 nad 0.2 not. Rounding or cutting result number after dot is not acceptable also, because i don't know precision of input numbers or signs