The remainder of 2 divided by 2 is 1? Not on the my planet Earth. 2%2 returns the remainder of the division, not the result of the division.
Type: Posts; User: rags_to_riches
The remainder of 2 divided by 2 is 1? Not on the my planet Earth. 2%2 returns the remainder of the division, not the result of the division.
((2%2) == 0)
What is the result of 2%2? 0. (The remainder of 2 divided by 2 is 0)
((0) == 0)
Does 0 == 0? Of course, so it evaluates as a boolean true.