twos-complement notation

1 topic · 1 source

Technology› Programming

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.

Cite this definition

APA
MLA
Chicago