Why would a c++ double be limiting itself to 5 decimal places?
问题 I'm hoping you can help with a bit of a head scratcher. I have written out a template class to calculate standard deviations: template <class T> double GetStandardDeviation(T* valueArray, int populationSize) { double average; T cumulativeValue = 0; double cumulativeSquaredDeviation = 0; // calculate average for (int i = 0; i < populationSize; i++) { cumulativeValue += valueArray[i]; } average = (double)cumulativeValue / (double)populationSize; // calculate S.D. for (int i = 0; i <