A note on C++ type deduction and standard library

I create a simple array of 100 equal values of 0.1 floats and sum them up using the following straightforward code:

The expected result is 10. Why this simple program prints the result 0 ?

Continue reading