Posted by Keyur on September 17, 2001 at 20:02:57:
Does anyone know how to output a second zero in an integer so that the output will be 1.00, for example, instead of 1.0 ? You could manually do it but that would not work because what if the value wasn't 1.00, you would have a extra zero. I tried setprecision and that doesn't work because setprecision is the precision after the decimal point and since the variable is an integer, there is no decimal point.