Modulus division is commonly used to determine whether a number is even or odd - for example, in Python, the following function would return true if the number is even, and false if it is odd:
isEven = lambda x: x % 2 == 0
Or, using traditional function declaration:
def isEven(x):
return x % 2 == 0