2 ms·
Surely a better method would be to detect the point at which sum will overflow, and at that point halve the sum and the count (shift right)? Sure, it's still no
by axod 18y ago
Surely a better method would be to detect the point at which sum will overflow, and at that point halve the sum and the count (shift right)? Sure, it's still not exact, but I think it's a far better long term solution.