POPPAR(I) (Fortran 2008)

Purpose

Population parity

Determines the parity for a data object.

Class

Elemental function

Argument type and attributes

I
An INTENT(IN) INTEGER
IBM extension beginsThe argument can also be of type BYTE, LOGICAL, or REAL. If the type of the argument is REAL, it must not be REAL(16).IBM extension ends

Result type and attributes

Default integer

Result value

Examples

The following table shows the functionality of the POPPAR function.
Integer Bit Representation POPPAR
0 0000 0
1 0001 1
2 0010 1
3 0011 0
4 0100 1

Related information

Data representation models