Two's complement

A binary encoding for signed integers in which a negative value is represented by inverting the bits of its positive magnitude and adding one. Its fixed-width arithmetic naturally wraps modulo a power of two.

Connect