eolas/zk/Signed_and_unsigned_numbers.md

21 lines
492 B
Markdown
Raw Normal View History

2022-12-03 11:00:05 +00:00
---
2024-06-15 11:00:03 +01:00
tags:
- binary
2024-06-16 18:30:03 +01:00
- hardware
2022-12-03 11:00:05 +00:00
---
# 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 08:00:03 +00:00
[[Twos_complement]], [[Binary_encoding]], [[Signed_magnitude_representation]]