Operating System: Microsoft Windows XP - SP 2
Detailed Problem Description:
The inverse operator mysteriously stopped working with the modulus operator
Code Snippet to Reproduce Problem:
var/number = 10//number divisible by 10
if(!number % 10) world << "Inverse works"
if(number % 10 == 0) world << "Regular check works"
This always comes out with "Regular check works". The number your dividing by doesn't seem to matter.
Does the problem occur:
Every time? Or how often? Everytime
On other computers? Unsure
In other user accounts? Makes no difference
That's because ! is evaluated before the module operator, whereas % is evaluated before ==.
~~> Unknown Perosn