Is there a way to test if a number is even?

Blitz3D Forums/Blitz3D Beginners Area/Is there a way to test if a number is even?


The abs() really isn't even neccessary to do it that way... The number is even if A mod 2 is 0, and it is odd if A mod 2 is not 0. No need to make sure it is never -1



Now you're introducing logic into programming - where's your sense of Microsoft?