diff --git a/zk/Signed_and_unsigned_numbers.md b/zk/Signed_and_unsigned_numbers.md index 07b928a..4b27aa2 100644 --- a/zk/Signed_and_unsigned_numbers.md +++ b/zk/Signed_and_unsigned_numbers.md @@ -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 diff --git a/zk/Twos_complement.md b/zk/Twos_complement.md new file mode 100644 index 0000000..b87c5a1 --- /dev/null +++ b/zk/Twos_complement.md @@ -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]]