The function appears to output 0 for any odd number (negative or positive) and 1 for even positive numbers, and 0 for even negative numbers.

