Thread: Finding a remainder when dividing

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    9

    Exclamation Finding a remainder when dividing

    After i divide to int together is ther a way to tell me if ther is a remainder or not.

    Can ne one help me PLEASE!!!

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    9

    Question Finding the remainder after dividing

    After i divide to int together is ther a way to tell me if ther is a remainder or not.

    Can ne one help me PLEASE!!!

  3. #3
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    367
    yes just use the modulas operator,

    ie. R = Num % 6. The remainder will be in r.
    Be a leader and not a follower.

  4. #4
    Registered User -leech-'s Avatar
    Join Date
    Nov 2001
    Posts
    54
    Use the modulus (%) sign. For example: 5 % 2 == 1.
    Not yet, have to think of one...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  2. Finding primes
    By starripper in forum C++ Programming
    Replies: 19
    Last Post: 01-14-2006, 04:17 PM
  3. MFC :: Finding Child Window of a CWnd* Object?
    By SyntaxBubble in forum Windows Programming
    Replies: 2
    Last Post: 09-06-2003, 09:06 AM
  4. Dividing int numbers by 256, but fast!
    By Boksha in forum C++ Programming
    Replies: 4
    Last Post: 04-04-2002, 03:44 PM
  5. Replies: 3
    Last Post: 02-25-2002, 11:19 AM