eolas/zk/Signed_and_unsigned_numbers.md
2024-03-20 08:00:03 +00:00

494 B

tags
binary
binary-encoding

Signed and unsigned numbers

Summary

  • To represent negative integers in binary we use signed numbers.Signed binary includes negative integers, unsigned binary does not.

  • There are different methods of implementing the encoding of signed numbers. Two prominant approaches are two's complement and signed magnitude representation.

Twos_complement, Binary_encoding, Signed_magnitude_representation