The example incorrectly displayed the signed -5

Amer K 2018-06-01 08:05:31 +03:00
parent 839a22481d
commit 155edfef92

@ -58,7 +58,7 @@ The processor uses the most significant (leftmost, also called the sign bit) bit
Let's take the number 5 for example (16-bit): Let's take the number 5 for example (16-bit):
``` ```
0000 0000 0000 0101 # The two's complement (signed) value is 5, the unsigned value is 5 0000 0000 0000 0101 # The two's complement (signed) value is 5, the unsigned value is 5
1111 1111 1111 1011 # The two's complement (signed) value is -5, the unsigned value is 65533 1111 1111 1111 1010 # The two's complement (signed) value is -5, the unsigned value is 65533
^ ^
The sign bit is set The sign bit is set
``` ```