Still loading. This can take a moment on a slow connection.
Still loading. This can take a moment on a slow connection.
Write negative numbers in two’s complement, and explain why the leftmost bit is worth −128.
The byte
32 + 16 + 8 = 56
0011 1000 is 56. Which byte is −56? Predict it in the guide, or press Negate to see.
0011 1000 is 56. Which byte is −56?
Choose one. How the negative is made stays hidden until you do.
Turn bits on and off, set a value from −128 to 127, or press Negate and follow its steps. Watch the sum line: the leftmost bit counts −128.
After you check a prediction, this says why.
Try what you found on the lesson’s 36 marked questions. Practise in Two's Complement
Eight bits in two’s complement hold −128 to 127.
Every byte here is read as two’s complement, so its leftmost bit always counts −128. Read as an unsigned byte, as the binary lab reads it, the same eight bits would be a different number: what a byte means depends on how it is read.