Project 3


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]