Computer Science for IGCSE & O level - Data Representation (Section 1 - No. 34)

What are the essential steps in converting a negative decimal number to its two's complement binary representation?
Invert all bits.
Add 1 to the result.
Convert to positive binary.
Subtract 1 from the result.

Explanation

The two's complement is obtained by inverting bits then adding 1.

Comments (0)

Advertisement