Raised This Month: $ Target: $400
 0% 

Digits of an Integer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-04-2015 , 19:52   Re: Digits of an Integer
Reply With Quote #6

Quote:
Originally Posted by safetymoose View Post
He mentioned that he covered the numbers below 1000 with %04i, so this is what he needed..
No, he said if his number was 4 digits or less. He said "formatting into 4 digits" which is illogical for numbers with more than 4 digits. At that point it's not a format, it's actually changing the value to something else. It would be logical to say "format into at least four digits" which is what %04i does.



Quote:
Originally Posted by safetymoose View Post
A counter of 4 digits? maybe something to be shown on a hud message or something?
Neither of those suggestions make make sense for getting the 4 left-most digits.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode