iand(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Bitwise logical and
result = iand(i, j)
Bitwise logical AND.
I The type shall be INTEGER. J The type shall be INTEGER, of the same kind as I.
The return type is INTEGER, of the same kind as the arguments. (If the argument kinds differ, it is of the same kind as the larger argument.)
Sample program:
program demo_iand implicit none integer :: a, b data a / zf /, b / z3 / write (*,*) iand(a, b) end program demo_iand
[[Fortran 95]] and later
[[Elemental procedure|Elemental function]]
ior(3), ieor(3), ibits(3), ibset(3), ibclr(3), not(3)
iand (3) | March 11, 2021 |