VMS Help  —  FORTRAN  Intrinsic Procedures, IBCHNG
  IBCHNG (integer, position)

  Class:  Elemental function - Generic

  Returns the reverse of the value of a specified bit in an integer.
  The low-order bit is position 0.

  Examples:

  Consider the following:

    INTEGER J, K
    J = IBCHNG(10, 2)         ! returns 14 = 1110
    K = IBCHNG(10, 1)         ! returns  8 = 1000
Close Help