Reading Assignment: Hexadecimal Numbers

This is an important reading assignment if you truly want to be able to read and understand raw bitcoin transactions. We are going to study hexadecimal numbers, it’s a common way to represent numbers in computer science. You don’t have to be a hexadecimal expert to continue in this course, but it will help if you know what it is.

So read through this article(https://learn.sparkfun.com/tutorials/hexadecimal/all) (you don’t have to read the sections about conversion), and answer the following questions. Post you answers here.

  1. What is the difference between hexadecimal and decimal numbers?
  2. Which are the extra “digits” we get in hexadecimal?
  3. What is the difference between using lower case or upper case letters?
  4. What is hexadecimal for 34?

Hey @filip and @ivan , I see the bitcoin programming 101 course is in this forum, but I don’t see it in my course list. Is that normal ?

It’s launching today! It will appear in a few hours.

1 Like

Answers
1.Hexadecimal is base 16 while decimal is base 10. In other words, decimal is from 0-9 integers while hexadecimal is 0-F

  1. Extra digits are alphabets (A-F)

  2. the hexadecimal representation

  3. 22

1 Like

1. What is the difference between hexadecimal and decimal numbers?
Decimal is base 10 (from 0-9) and Hexadecimal is base 16 (0-15 or 0-9 + A,B,C,D,E, and F)

2. Which are the extra “digits” we get in hexadecimal?
A,B,C,D,E, and F which correspond to 10,11,12,13,14, and 15.

3. What is the difference between using lower case or upper case letters?
There is no difference. There is not standard. The are interchangeable.

4. What is hexadecimal for 34? (Use your head!)
22 is hexadecimal for the number 34. (Bizarre… haha!)

1 Like

– What is the difference between hexadecimal and decimal numbers?
Decimal is base 10 (reprsented as 0-9) and Hexadecimal is base 16

– Which are the extra “digits” we get in hexadecimal?
which is A B C D E F

–. What is the difference between using lower case or upper case letters?
nothing there interchangeable.

–. What is hexadecimal for 34?
22 hexadecimal stands for 34

1 Like
  1. What is the difference between hexadecimal and decimal numbers?
    HEX is a system that uses a base-16 in stead of base-10 number system.
    base-10 uses numbers from 0-9
    base-16 uses numbers from 0-9 and then A - F

  2. Which are the extra “digits” we get in hexadecimal?
    A-F (for the numbers 10 - 15)

  3. What is the difference between using lower case or upper case letters?
    there is no difference

  4. What is hexadecimal for 34? (Use your head!)
    0x22

1 Like
  1. The difference is that hexadecimal uses 16 unique base digits and decimal uses 10
  2. In hexadecimal we get the extra digits A B C D E F
  3. There is no difference between using upper- or lower-case in hexadecimal, they mean the same
  4. 34 (base10) = 22 (base16)
1 Like
What is the difference between hexadecimal and decimal numbers?

Calculus basis it is.
Not sure what you mean by this question actually.

Which are the extra “digits” we get in hexadecimal?

A, B, C, D, E, F

What is the difference between using lower case or upper case letters?

No difference. Just readability.
Technically. it might make sense for string comparison or hash calculations.
Still, those are done on binary data rather than on human readable representation, so that should not be an issue, I guess.

What is hexadecimal for 34?

34 == 0x22
2 * 16^0 + 2 * 16 ^ 1 = 2*1 + 2*16 = 2 + 32 = 34
1 Like
  1. base16 vs base10
  2. A-F represent the values above 9, 10-15
  3. Nothing that I’m aware of when talking about actual value.
  4. 0x23
1 Like