9.3.115 POPPAR (I)

Description:  Returns the parity of an integer.  
Class:  Elemental function; Generic 
Arguments:  I must be of type integer. 
Results:  The result type is the same as I. If there are an odd number of 1 bits in the binary representation of the integer I, the result value is 1. If there are an even number, the result value is zero.

The model for the interpretation of an integer value as a sequence of bits is shown in Section D.3.

Examples

If the value of I is B'0...00011010110', the value of POPPAR(I) is 1.


Previous Page Next Page Table of Contents