What is a good solution for calculating an average where the sum of all values exceeds a double's limits?

前端 未结 17 2161

I have a requirement to calculate the average of a very large set of doubles (10^9 values). The sum of the values exceeds the upper bound of a double, so does anyone know a

17条回答
提交回复
热议问题