twos-complement notation
Java
In twos-complement notation, the most significant bit in an integer value is used as the sign bit. A 1 bit indicates a negative number, and a 0 bit indicates a positive number. A positive number can be converted to its negative value by complementing the bit pattern and adding 1. The same operation is used to convert a negative value to its positive equivalent.