Signed number representations: Difference between revisions

Content deleted Content added
m Comparison table: Formatted minus signs (save more space)
Line 197:
! style="width: 7em" | Two's complement
! style="width: 7em" | Excess-8 (biased)
! style="width: 7em" | Base −2 −2
|-
| align=right|+16    
Line 433:
{| class="wikitable" style="text-align: center"
|-
! Binary !! Unsigned !! Sign and magnitude !! Ones' complement !! Two's complement !! Excess-8 !! Base −2 −2
|-
| 0000 || 0 || 0 || 0 || 0 || −8−8 || 0
|-
| 0001 || 1 || 1 || 1 || 1 || −7 −7 || 1
|-
| 0010 || 2 || 2 || 2 || 2 || −6 −6 || −2 −2
|-
| 0011 || 3 || 3 || 3 || 3 || −5 −5 || −1 −1
|-
| 0100 || 4 || 4 || 4 || 4 || −4 −4 || 4
|-
| 0101 || 5 || 5 || 5 || 5 || −3 −3 || 5
|-
| 0110 || 6 || 6 || 6 || 6 || −2 −2 || 2
|-
| 0111 || 7 || 7 || 7 || 7 || −1 −1 || 3
|-
| 1000 || 8 || −0 −0 || −7 −7 || −8 −8 || 0 || −8 −8
|-
| 1001 || 9 || −1 −1 || −6 −6 || −7 −7 || 1 || −7 −7
|-
| 1010 || 10 || −2 −2 || −5 −5 || −6 −6 || 2 || −10 −10
|-
| 1011 || 11 || −3 −3 || −4 −4 || −5 −5 || 3 || −9 −9
|-
| 1100 || 12 || −4 −4 || −3 −3 || −4 −4 || 4 || −4 −4
|-
| 1101 || 13 || −5 −5 || −2 −2 || −3 −3 || 5 || −3 −3
|-
| 1110 || 14 || −6 −6 || −1 −1 || −2 −2 || 6 || −6 −6
|-
| 1111 || 15 || −7 −7 || −0 −0 || −1 −1 || 7 || −5 −5
|}