twoscomplementform
nounUK /ˌtuːz ˈkɒmplɪmənt fɔːm/
US /ˌtuːz ˈkɑːmpləmənt fɔːrm/
A way computers write numbers so they can add and subtract easily.
The programmer stored the negative value in twoscomplementform.
OTHER MEANINGS
2. A binary encoding where negative numbers are made by flipping all bits and adding one.
In twoscomplementform, the byte 11111111 stands for minus one.
3. A method that lets a computer use the same circuit for addition and subtraction.
Using twoscomplementform, subtraction is just addition of a negative number.
4. The standard way signed whole numbers are kept in most modern processors.
Most CPUs expect integers in twoscomplementform.