Results 1 to 3 of 3

Thread: % in java

  1. #1

    % in java

    % in Java, what does it mean?

  2. #2

  3. #3
    1,839
    posts
    Registered User
    Afaik in programming languages % is almost always modulos.
    It returns the remainder
    5%3 = 5/3 = 1 with remainder of 2 so = 2
    7%3 = 7/3 = 2 with remainder of 1 = 1

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
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012