Posted by Erik on September 24, 2001 at 14:50:26:
In Reply to: Re: the trouble with trailing 0's posted by Amitabh Ghuwalewala on September 24, 2001 at 10:52:43:
There shouldn't be any need for setprecision() or typecasting. I used all integers for my values and calculations, so none of this stuff applies. setfill() was an incredibly useful function in this program, and it may be used even when you only need to fill up one space. (hint)
: : 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!
Post a Followup