Skip to content

Instantly share code, notes, and snippets.

@rezen
Last active August 29, 2015 14:19
Show Gist options
  • Save rezen/c307ea70d45bc0a17742 to your computer and use it in GitHub Desktop.
Save rezen/c307ea70d45bc0a17742 to your computer and use it in GitHub Desktop.
Understanding computer numbering systems
Binary number system
https://www.youtube.com/watch?v=ry1hpm1GXVI
Why binary?
https://www.youtube.com/watch?v=1sWCBgGALXE
8-bits = 1 byte
8-bits (aka 1 bytes) is amount needed for 1 of the 255 asci charactors
2^7 | 2^6|2^5 |2^4 |2^3|2^2|2^1|2^0
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 (max number = 255)
1 | 0 | 1 | 0 | 0 | 0 | 0 | 1
num=161
"The main reason why we use hexadecimal numbers is because it is much easier to express binary number representations in hex than it is in any other base number system."
http://digiassn.blogspot.com/2006/02/why-do-we-use-hexadecimal.html
Hex
16^7 | 16^6|16^5 |16^4 |16^3 | 16^2 | 16^1 | 16^0
4294967296 | | | | 65536 | 4096 | 256 | 1
2 | 0 | 0 | 0 | 0 | 0 | 0 | 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment