ios::scientific vs ios::fixed---SETPRECISION(1)

Hello!
Please, if we have:
cout<<setiosflags(ios::sicentific)<<setprecision(1);
cout<<4358.24;

we get :
4.4e+003

and with ios::fixed

we get 4358.2

My question is:

as we have setprecision(1) inthe first line, why do we get 2 NUMBERS (CIPHERS)!???(4.4 instead of 4, cause setprecision is (1)!)!!!
Many thanks!!!

Last edited on
I get completely different results, I think it can't handle the combination of those restrictions.
hello!
I just wrote it from a BOOK!

What compiler do U use?
I will try now and tell result!
Thanks!
Topic archived. No new replies allowed.