# Difference between revisions of "NOT (binary)"

From veswiki

m (1 revision) |
|||

Line 1: | Line 1: | ||

− | To NOT a value is to get the inverse of that number, or the | + | To NOT a value is to get the inverse of that number, or the complement; thus, any bits set to TRUE will become FALSE, and vice versa. If you applied a NOT operation to the following number: |

%10110100 | %10110100 |

## Latest revision as of 21:52, 16 November 2012

To NOT a value is to get the inverse of that number, or the complement; thus, any bits set to TRUE will become FALSE, and vice versa. If you applied a NOT operation to the following number:

%10110100

You would get:

%01001011

The resulting number is essentially the inverse of the number. Also take note that you can get the same result by applying an XOR operation to a number, using a number of the same length will all bits set to TRUE. If you applied the XOR operation to the following two numbers:

%10110100 %11111111

You would get the complement of the first.