Use float64 to accumulate average.