I made a much more simple way of detecting even or odd numbers. All it does is see if half of the number rounded times 2 = the number Lets say 2: 2 / 2 = 1, 1 rounded is 1, 1 * 2 = 2, 2 = the answer Even Now for 3: 3 / 2 = 1.5, 1.5 rounded is 2, 2 * 2 = 4, 4 does not equal 3 Odd
Credit to @botconboy 4 original