Clicky

Fortran Wiki
iand (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #2 to #3: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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

Revised on July 7, 2009 13:19:24 by Reinhold Straub? (149.225.86.119) (698 characters / 0.0 pages)
Edit | Back in time (2 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, btest, ibclr, ibits, ibset, ior, mvbits, not, ieor, iall

AltStyle によって変換されたページ (->オリジナル) /