NOT(I)

Purpose

Performs a bitwise complement of integer.

Class

Elemental function

Argument type and attributes

I
must be of type integer.

Result type and attributes

Same as I.

Result value

The result has the value obtained by complementing I bit-by-bit according to the following table:

ith bit   ith bit
 of I    of NOT (I)
------------------
  1          0
  0          1

The bits are numbered 0 to BIT_SIZE(I)-1, from right to left.

Specific Name Argument Type Result Type Pass As Arg?
NOT any integer same as argument yes 1 
Notes:
  1. IBM Extension.