My program involves getting double input, performing some calculations, and then displaying the double results along with the original input. I have the whole thing set to cout << fixed << showpoint; and I am using setprecision(2) to make the results show to 2 decimal points. My problem is that I want the displayed output of the initial input to look exactly like the input, e.g. if the input was 4 I want it to output "4" not "4.00000...", or if it was 3.456 output "3.456". How do I do this?