Raised This Month: $ Target: $400
 0% 

Digits of an Integer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
safetymoose
Senior Member
Join Date: Feb 2015
Old 12-04-2015 , 14:01   Re: Digits of an Integer
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
That will only work for values between 10,000 and 99,999,999.
He mentioned that he covered the numbers below 1000 with %04i, so this is what he needed..

If he needs negative numbers below -10000, he can figure it out

Quote:
Originally Posted by fysiks View Post
What exactly are you trying to do? What situation would you only want the first 4 digits?
A counter of 4 digits? maybe something to be shown on a hud message or something?

What did you need it for anyways, i'm curious to know too

Last edited by safetymoose; 12-04-2015 at 14:02.
safetymoose 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