-
January 16th, 2010, 12:39 AM
#1
Write an integer to x number of places.
How would I write an integer to a desired number of places. For example, lets say int x = 50; Now, when I write x to a text box it displaces 50, but I want x to display 0050. I could do something simple like "00" + x, but when the number reaches the 100s or 1000s, I do not want the extra zeros.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|