Actually, that test will never pass. All single-precision floating point integers with magnitude greater than 2^24 are even since you run out of bits in the mantissa, so 2^31-1 gets rounded to 2^31.