[UP]


Manual Reference Pages  - iand (3)

NAME

iand(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Bitwise logical and

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

result = iand(i, j)

DESCRIPTION

Bitwise logical AND.

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

Sample program:

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

STANDARD

[[Fortran 95]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[ior]], [[ieor]], [[ibits]], [[ibset]], [[ibclr]], [[not]]


iand (3) March 18, 2019
Generated by manServer 1.08 from 2b197061-648a-4d10-b33c-33480456c113 using man macros.