How do I make
std::cout << 123456789.12
print this:
123456789.12
It always prints this:
1.23457e+008
I know that I have to play with the flags, but I cant quite figure out the right combination. If I set the fixed flag, it prints
123456789.120000
std::setprecision(int )
trystd::cout << std::setprecission(20) << 123456789.12 << endl;
– Hagertystd::cout << "123456789.12";
– Brachyuran