Thread: Maths problem

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    13

    Maths problem

    Hi

    I've come accross a maths thing I have not seen before and can't seem to find it on the internet anywhere so I thought I would ask here.

    a > (a%b)

    I know its asking if a is greater than (a%b) but what does the (a%b) part mean ?

    Thanks for any help.

  2. #2
    Rabble Rouser Slacker's Avatar
    Join Date
    Dec 2005
    Posts
    116
    The result of a%b is the remainder of a/b.

  3. #3
    Cached User mako's Avatar
    Join Date
    Dec 2005
    Location
    Germany.Stuttgart
    Posts
    69
    if they're both int values and a=5 and b=2 then a%b=1

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    13
    Ahhh, I see.

    thanks for that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  4. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  5. Maths problem
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-13-2002, 02:34 PM