Ref: https://learn.cantrill.io/courses/2022818/lectures/45662102
YouTube: https://www.youtube.com/watch?v=-gFG4lqhTYw
Binary, Decimal, and Hexadecimal Number Formats

- 🔧 Humans and machines understand numbers differently
- Computers need binary (0s and 1s)
- Humans like decimal (0…9)
- Hexadecimal (0…9A…F) condenses binary (16 is a power of 2)
- ‼️ You should learn how to convert between all these formats!!
- Otherwise you will struggle with e.g. networking (IPv4 addresses are represented as dotted-decimal… but they're actually four octets!)
- 💡 I highly recommend watching the video to this lecture, these conversion processes are much easier explained visually than with written notes → I will only provide diagrams here
- 💡 Also, practice converting numbers between binary, decimal, and hexadecimal until you're comfortable with it!
Decimal→Binary Conversion


Binary→Decimal Conversion
