N
Noah Roberts
I have a double that contains the value 1000000. I want to print
"1000000". Just doing this:
str << doub;
results in "1e+006". Attempting this:
str << std::fixed << doub;
results in "1000000.000000"
str << std::fixed << std::noshowpoint << doub
results in the same.
"1000000". Just doing this:
str << doub;
results in "1e+006". Attempting this:
str << std::fixed << doub;
results in "1000000.000000"
str << std::fixed << std::noshowpoint << doub
results in the same.
isn't resulting in what I want. What is the correct way?From what I am reading, the last should be exactly what I want but it