Hacker News new | ask | show | jobs
by glitchc 2649 days ago
This is silly. If overflow is really a concern, use Welford’s algorithm to compute a running mean. It avoids the sum -> float overflow issue.