Could someone explain to me how the modulo works. I understand that 6%3=0 because 6/3=2.0 with no remainder.
But I don't understand that 3%6=3 because 3/6=0.5
Is this because 0.5 is not an int and so it gets 0? So 0 * 6 = 0 and it leaves 3? I have no idea how to read this.
I hope someone can help me out with this