iand(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Bitwise logical and
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
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 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]], [[ieor]], [[ibits]], [[ibset]], [[ibclr]], [[not]]
iand (3) | March 18, 2019 |