Results 1 to 4 of 4

Thread: What does mod do

  1. #1
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default What does mod do

    What does mod in scar do? Thanks

  2. #2
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    returns the remainder of the 2 numbers.

    SCAR Code:
    4 mod 2 = 0;
    3 mod 2 = 1;

    dont know how else to say it. Hope that helps

  3. #3
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    A nice definition from bullzeye..
    Quote Originally Posted by bullzeye95 View Post
    It's short for modulus. It's just like dividing, but it returns the remainder instead. For example, 5 mod 3 would be 2.
    =]

  4. #4
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Ahhhh Thanks guys

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •