Solved getting int of remainder

Discussion in 'Spigot Plugin Development' started by MadMaxCookie, May 26, 2016.

  1. Hello how do I get the int of the remainder ?

    for example

    int i = 27 % 12; // returns to 2;

    int remainder = // any value that will returns to 27 % 12 the remainder should be = 3;
     
  2. int remainder = i;
     
  3. oops yeah :D

    difference between % and /
     

  4. / divides, so 100/2 will make it 50

    \/\/
    while 100%2 = 100/100*2 = 2

    If not mistaken ^^
     
  5. nope it returns to 0 if you did 100 % 2;
     
  6. Oh :p Maybe look at some math classes xD
     
  7. because there is no remainder :p