Hello I am very new to C++ and I am very confused regarding the differences between these functions. I have read different things online and tried different test programs but I am hitting a wall in trying to figure out the exact difference. Wouldn't fixed and showpoint do the same thing? Does setprecision take into account the entire number and setprecision only affect the decimal?
For example such as a double initilized as 422.53432123
would then fixed(5) be 422.53
where showpoint(5) would be 422.53432
Thanks in advance.
For example such as a double initilized as 422.53432123
would then fixed(5) be 422.53
where showpoint(5) would be 422.53432
Thanks in advance.