Beginner's Guide to Coding and Data

Level: Beginner

Hexadecimal explained | Higher than base-10 positional numeral systems

video

expand_more chevron_left

text

expand_more chevron_left

Unraveling the Mystery of Bases and Digits

We're back exploring another interesting mathematical concept: positional numeral systems. Today, we'll dive into bases, digits, and what happens when we wander beyond the familiar territory of base 10.

To get started, let's break down the basic steps of understanding this concept:

  1. Understand what a digit is
  2. Explore different bases
  3. Learn about carrying over in different bases
  4. Experiment with base 16 (hexadecimal)
  5. Examine how base relationships work

What is a Digit?

As we embark on this journey, it's crucial to understand what a digit is. A digit is a single symbol that represents a number. It serves as a building block in positional numeral systems. In layman's terms, digits are the symbols we use to write down numbers.

Digits and Bases

A base in positional numeral systems tells us how many distinct digits are available. For example, base 2 has 2 digits (0 and 1), base 3 has 3 digits, and so on. The key thing to remember is that the number of digits matches the base.

  • Base 2 (Binary): 0, 1
  • Base 3 (Ternary): 0, 1, 2
  • Base 4 (Quaternary): 0, 1, 2, 3
  • Base 5 (Quinary): 0, 1, 2, 3, 4
  • Base 6 (Senary): 0, 1, 2, 3, 4, 5
  • Base 7 (Septenary): 0, 1, 2, 3, 4, 5, 6
  • Base 8 (Octal): 0, 1, 2, 3, 4, 5, 6, 7
  • Base 9 (Nonary): 0, 1, 2, 3, 4, 5, 6, 7, 8
  • Base 10 (Decimal): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

The real fun starts when we venture beyond base 10. What happens when our base gets higher than 10? Let's explore this by examining base 16, also known as hexadecimal.

Hexadecimal: Base 16

In base 16, counting starts to look a bit different. After the digits 0-9, we still need additional symbols to represent numbers before carrying over. The symbols chosen are often letters. For example, the number 10 in base 16 is represented by the symbol A.

let hexDigits = ["0", "1", "2", ..., "9", "A", "B", ..., "F"];

By the time we get to 15, we represent it as F. Once we get to 16, we carry over and start again, now with 1 in the 16s place.

To summarize, we've seen that we can continue this pattern all the way up to base 36, using the letters of the alphabet after running out of numerical digits.

Beyond Base 36

We could technically keep going beyond base 36. To do this, we would just need to invent new symbols. So, if we're feeling adventurous, the sky's the limit!

We chose to work with hexadecimal because it's prevalent in computing, mostly because of its neat relationship with base 2.

In closing, it's vital to remember that bases using unfamiliar symbols help us understand the difference between numbers (the abstract concept) and numerals (the symbols used to represent numbers).

We're now ready to delve deeper into patterns involving bases and digits, which we'll do in the next lesson. Stay tuned!

quiz

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Quiz Results

resources

expand_more chevron_left
A digit is a single symbol that represents a number. In positional numeral systems, the base tells us how many distinct digits we have to express numbers using numerals. Base-2 has two digits. Base-3 has 3 digits, and this pattern holds all the way up to base-10 and beyond. What happens though when we go higher than base-10? Let's check it out! Don't forget about the notebook where you can try out some numbers! Give it a try here: https://beta.observablehq.com/@deeplizard/positional-numeral-systems Prerequisites videos: Numerical data explained - https://youtu.be/YDDqe60omL0 Numeral vs Number - https://youtu.be/RSdnNZBj8HQ Binary vs Decimal - https://youtu.be/-MM6PcEQnWc πŸ•’πŸ¦Ž VIDEO SECTIONS πŸ¦ŽπŸ•’ 00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources 00:30 Help deeplizard add video timestamps - See example in the description 05:23 Collective Intelligence and the DEEPLIZARD HIVEMIND πŸ’₯🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎πŸ’₯ πŸ‘‹ Hey, we're Chris and Mandy, the creators of deeplizard! πŸ‘€ CHECK OUT OUR VLOG: πŸ”— https://youtube.com/deeplizardvlog πŸ’ͺ CHECK OUT OUR FITNESS CHANNEL: πŸ”— https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA 🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order: πŸ”— https://neurohacker.com/shop?rfsn=6488344.d171c6 ❀️🦎 Special thanks to the following polymaths of the deeplizard hivemind: Mano Prime πŸ‘€ Follow deeplizard: Our vlog: https://youtube.com/deeplizardvlog Fitness: https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA Facebook: https://facebook.com/deeplizard Instagram: https://instagram.com/deeplizard Twitter: https://twitter.com/deeplizard Patreon: https://patreon.com/deeplizard YouTube: https://youtube.com/deeplizard πŸŽ“ Deep Learning with deeplizard: AI Art for Beginners - https://deeplizard.com/course/sdcpailzrd Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd Learn TensorFlow - https://deeplizard.com/course/tfcpailzrd Learn PyTorch - https://deeplizard.com/course/ptcpailzrd Natural Language Processing - https://deeplizard.com/course/txtcpailzrd Reinforcement Learning - https://deeplizard.com/course/rlcpailzrd Generative Adversarial Networks - https://deeplizard.com/course/gacpailzrd Stable Diffusion Masterclass - https://deeplizard.com/course/dicpailzrd πŸŽ“ Other Courses: DL Fundamentals Classic - https://deeplizard.com/learn/video/gZmobeGL0Yg Deep Learning Deployment - https://deeplizard.com/learn/video/SI1hVGvbbZ4 Data Science - https://deeplizard.com/learn/video/d11chG7Z-xk Trading - https://deeplizard.com/learn/video/ZpfCK_uHL9Y πŸ›’ Check out products deeplizard recommends on Amazon: πŸ”— https://amazon.com/shop/deeplizard πŸ“• Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard's link: πŸ”— https://amzn.to/2yoqWRn 🎡 deeplizard uses music by Kevin MacLeod πŸ”— https://youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ ❀️ Please use the knowledge gained from deeplizard content for good, not evil.

updates

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Update history for this page

Did you know you that deeplizard content is regularly updated and maintained?

  • Updated
  • Maintained

Spot something that needs to be updated? Don't hesitate to let us know. We'll fix it!


All relevant updates for the content on this page are listed below.