Autosave: 2024-03-19 07:20:03
This commit is contained in:
parent
1f11a23e6e
commit
790dedf85d
2 changed files with 27 additions and 4 deletions
|
@ -6,11 +6,13 @@ tags: [binary, binary-encoding]
|
|||
|
||||
## Summary
|
||||
|
||||
- To represent negative integers in binary we use signed numbers.
|
||||
- To represent negative integers in binary we use signed numbers._Signed binary_
|
||||
includes negative integers, _unsigned binary_ does not.
|
||||
|
||||
In order to represent negative integers in binary we use signed numbers.
|
||||
**Signed binary** is basically binary where negative integers can be
|
||||
represented. **Unsigned binary** is standard binary without negative integers.
|
||||
- The principal methnod for encoding signed binary numbers is called **two's
|
||||
complement**.
|
||||
|
||||
## Related notes
|
||||
|
||||
In order to represent negative integers alonside positive integers a natural
|
||||
approach is to divide the available
|
||||
|
|
21
zk/Twos_complement.md
Normal file
21
zk/Twos_complement.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
id: gktb
|
||||
title: Two's complement
|
||||
tags: []
|
||||
created: Tuesday, March 19, 2024
|
||||
---
|
||||
|
||||
# Two's complement
|
||||
|
||||
## Summary
|
||||
|
||||
- _Two's complement_ is a method for representing signed numbers (negative
|
||||
integers) in binary.
|
||||
|
||||
## Detail
|
||||
|
||||
## Applications
|
||||
|
||||
## Related notes
|
||||
|
||||
[[Signed_and_unsigned_numbers|signed_and_unsigned_numbers]]
|
Loading…
Add table
Reference in a new issue