NOT(I)
Purpose
Performs a bitwise complement of integer.
Class
Elemental function
Argument type and attributes
- I
- An INTENT(IN) 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.
Examples
If I is represented by the string of bits 01010101, NOT (I) has the string of bits 10101010. See Integer bit model.
| Specific Name | Argument Type | Result Type | Pass As Arg? |
|---|---|---|---|
| NOT | any integer | same as argument | yes 1 |
| Note:
|
|||


