HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 557
IAND(I, J)
Description
Performs a bitwise logical AND.
Class
Elemental function.
Arguments
I must be of type integer.
J must be of type integer with the same kind type parameter as I.
Result type/
type parameters
Same as I.
Result value
The result has the value obtained by combining I and J bit-by-bit according to Table 11-6.
The model for the interpretation of an integer value as a sequence of bits is in “The Bit Model”
on page 508.
Specific forms
BIAND, HIAND, IIAND, JIAND, KIAND.
Table 11-6 Truth table for IAND intrinsic
I J IAND(I, J)
111
100
010
000