Raised This Month: $ Target: $400
 0% 

Last Digit from a Integer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-10-2010 , 21:22   Re: Last Digit from a Integer
Reply With Quote #1

Quote:
Originally Posted by wrecked_ View Post
What exactly does the modulo operator return? I'm aware that it has something to do with the remainder, but that operation makes no sense at all to me. I would've thought it'd return 0, since the remainder of 123456 / 10 is 0.
You fail at math if you think that. % returns the remainder of the division problem. 6 / 10 leaves you with a remainder of 6...
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-10-2010 , 21:26   Re: Last Digit from a Integer
Reply With Quote #2

Quote:
Originally Posted by YamiKaitou View Post
You fail at math if you think that. % returns the remainder of the division problem. 6 / 10 leaves you with a remainder of 6...
Oh, come to think of it, that was quite a dumb statement.

My bad.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply



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 19:49.


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