954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

NEED Help with Cout to print

hello there

I was wondering how would we print numbers like xxxxxxxx.xxxx using cout? I know we can use setprecision() to get the decimals right to the dot. But i am looking to print the numbers left to the dot.ex: 00000012.12345

is there a way that i am unaware about it?

please let me know.

pradeey
Newbie Poster
3 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

How about setw()?

vidit_X
Junior Poster
168 posts since Aug 2008
Reputation Points: 40
Solved Threads: 26
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: