NOT(I)

Purpose

Performs a logical complement.

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:

I 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.
IBM Copyright 2003