eolas/zk/Signed_and_unsigned_numbers.md

19 lines
460 B
Markdown
Raw Normal View History

2022-12-03 11:00:05 +00:00
---
tags: [binary, binary-encoding]
---
# Signed and unsigned numbers
2024-03-19 07:10:03 +00:00
## Summary
2024-03-19 07:20:03 +00:00
- To represent negative integers in binary we use signed numbers._Signed binary_
includes negative integers, _unsigned binary_ does not.
2024-03-19 07:10:03 +00:00
2024-03-20 07:50:03 +00:00
- There are different methods of implementing the encoding of signed numbers.
Two prominant approaches are **two's complement** and **signed magnitude
representation**.
2024-03-19 07:20:03 +00:00
## Related notes
2022-12-03 11:00:05 +00:00
2024-03-20 07:50:03 +00:00
[[gktb#detail|two's complement Detail]]