What is the difference between unsigned and signed numbers?▼
Unsigned numbers only represent zero and positive values. Signed numbers can represent positive, zero, and negative values using special encoding schemes like sign-magnitude, ones complement, or twos complement.
What is sign-magnitude representation?▼
Sign-magnitude uses the leftmost bit as a sign bit (0 = positive, 1 = negative), with the remaining bits representing the magnitude (absolute value). Simple but has two representations for zero.
How does twos complement work?▼
Twos complement is the most common signed representation. To negate: invert all bits (ones complement) then add 1. Only one zero, and addition/subtraction work the same as unsigned.
Why is twos complement preferred?▼
Twos complement has a single zero representation, simplifies hardware design, and allows using the same addition/subtraction circuits for both signed and unsigned numbers.
Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.