Results 1 to 3 of 3

Thread: Easy one but can't find it...

  1. #1
    FiReSe7eN
    Guest

    Easy one but can't find it...

    heyz,

    I know this is an easy one but I'm just learning vb, comming from c++, and I can't find how to get this:

    5/2 --> 1
    5/3 --> 2

    So it just returns the remainder..

    Thx & Greetz,
    FiRe7

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    The Mod funtion is what u are looking for.

    X = 5 Mod 2

    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  3. #3
    FiReSe7eN
    Guest

    thx beachbum

    thx man

    knew it was something with mod.. mod(5/2) didn't work.. grmbl
    anyway...
    thx

    Greetz,
    FiRe7


    Merry Christmas and a Happy Newyear

Posting Permissions

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



Click Here to Expand Forum to Full Width