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-06-2015 , 21:59   Re: Digits of an Integer
Reply With Quote #9

Quote:
Originally Posted by PartialCloning View Post
I'm still glad I learned the method you guys posted, I'm sure it'll come in handy one day.
Taking the 4 left-most digits is nonsensical logic and is therefore invalid (I can't think of any valid use).

If you need to convert between seconds and milliseconds, either multiply by 1000 to go from seconds to milliseconds or divide by 1000 to go from milliseconds to seconds (when dividing, make sure both numbers are floating point values). But, it sounds like you figured this part out.

So, what happened in this thread is known as the XY Problem. To avoid this in the future, when asking questions, always explain what you are actually trying to do.
__________________

Last edited by fysiks; 12-06-2015 at 22:01.
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