Pike v8.0 release 1738

Method Int.parity()


Method parity

bool parity(int(0..) value)

Description

Returns the parity of the integer value. If the parity is odd 1 is returned. If it is even 0 is returned.