/*
What the program should do at this point is print out the total after each calculation. After this, I have a normal number that shouldn't change at all, not print into scientific notation. This is confusing because when I have the number under 1,000,000, the number prints normally, but the millions place immediately goes into this notation. I finally have the number switch into scientific notation, print it, then go back to not and it works fine. This is weird because once the number peaks 1 mil, it starts going into Scientific notation for an unknown reason
*/
15 //total non sci not
1.23457e+06
1.500000e+01 //total sci not
239 //total non sci not
1.23567e+06
2.390000e+03 //total sci not
etc.
/*
suddenly, the number will switch over to scientific notation when it's being told specifically not to
*/
1.27453e+07
1.23457+06
1.27453e+07
**********************************************
What have I don't wrong to cause this? I don't want the repeating zeroes and a decimal with Cout.setf(iOS::fixed), and this is working out even worse. Is there any way to show just the normal value without all the intrusive zeroes or scientific notations? I'd appreciate any response, thank you.
@Peter87 I appreciate the help, though I'm not seeing how I would apply this since the numbers I am working with do not have decimals, and setprecision(1) will just give me a 0 at the end, no? Sorry. I'm just trying to fully grasp this