[c++] Printing the correct number of decimal points with cout