Autosave: 2024-03-21 07:40:03
This commit is contained in:
parent
0f1ac6f2db
commit
a95b50c19b
1 changed files with 12 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
id: 3wsh
|
||||
title: Signed_magnitude_representation
|
||||
tags: []
|
||||
tags: [binary, binary-encoding]
|
||||
created: Wednesday, March 20, 2024
|
||||
---
|
||||
|
||||
|
@ -20,8 +20,18 @@ Typically `0` is used to indicate an unsigned (positive) integer and `1` to
|
|||
indicate a signed (negative) number. The rest of the bits are the magnitude (the
|
||||
actual numerical value).
|
||||
|
||||
We can demonstrate with an 8-bit binary system.
|
||||
We can demonstrate with an 8-bit binary system, encoding `5`: `0000 0101`. Here
|
||||
the furthest bit (aka. the "most significant bit" (MSB)) at the $2^8$ position
|
||||
is `0`, designating that the number is unsigned. The signed equivalent is
|
||||
`1000 0101`, with the MSB being `1` designating the number as signed. When we
|
||||
are working with signed numbers, the MSB is known as the **signed bit**.
|
||||
|
||||
### Advantages
|
||||
|
||||
### Limitations
|
||||
|
||||
## Applications
|
||||
|
||||
## Related notes
|
||||
|
||||
[[Signed_and_unsigned_numbers|signed_and_unsigned_numbers]]
|
||||
|
|
Loading…
Add table
Reference in a new issue