Re: the trouble with trailing 0's


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

Posted by Amitabh Ghuwalewala on September 24, 2001 at 10:55:08:

In Reply to: the trouble with trailing 0's posted by Zach Egolf on September 23, 2001 at 15:33:06:

: For some reason (despite efforts using setprecision, type casting, number conversion and some others) I can not get my 0's in my numbers that only contain 0's after the decimal point. It doesn't truncate the numbers when there are numbers>0 for the other data items, but it truncates all zeros. Can anyone help?

: Thanks

What you might wanna try is the setfill() manipulator. And try not to use any floating point variables or constants in this project, as it suggests in the project specs. then the truncation problem might get eliminated




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 ]