in reply to Re^5: Best way to make sure a number is an even multiple of another?
in thread Best way to make sure a number is an even multiple of another?

In this case, there's an overload on the word "even". You're using it in the "divisible by two" sense, whereas in this context it means "an number m divides an integer n evenly if and only if there exists an integer k such that m * k = n". Stated another way, n % m == 0.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^6: Best way to make sure a number is an even multiple of another?