I have a vector with float values and doubles, I am trying to sum all the elements of the vector. The problem is: it is only considering the number before decimal point.
sum_of_elems = std::accumulate(MyVector.begin(), MyVector.end(), 0); //this is what i m doing