Fortran Wiki
iand

Description

Bitwise logical and.

Standard

Fortran 95 and later

Class

Elemental function

Syntax

result = iand(i, j)

Arguments

  • i - The type shall be integer.
  • j - The type shall be integer, of the same kind as i.

Return value

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.)

Example

program test_iand
  integer :: a, b
  data a / z'f' /, b / z'3' /
  write (*,*) iand(a, b)
end program

See also

ior, ieor, ibits, ibset, ibclr, not

category: intrinsics