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?
2 Likes

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!)

3 Likes

– 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

2 Likes
  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

2 Likes
  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
2 Likes
  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

1 What is the difference between hexadecimal and decimal numbers?
hex used 16 digits (0123456789ABCDEF)
dec used 10 digits (0123456789)

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

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

4 What is hexadecimal for 34? (Use your head!)
22

1 Like
  1. Base 10 and Base 16
  2. a b c d e f
  3. Same thing
    4.22
1 Like
  1. Hexadecimal base system uses 16 digits from 0 to 15 (f) while decimal uses 10 digits from 0 to 9
  2. a, b, c, d, e, f
  3. Trick question :slight_smile: there is none.
  4. 22
2 Likes

Hexadecimal numbers



  1. Hexadecimal numbers have 16 symbols (base16) while decimal numbers have 10 symbols (base10).
    Hexadecimal numbers are easier to use because it represents 4 binary digits (nibble)
    2 hexadecimal numbers are equal to 1 byte.
  2. A B C D E F (10 11 12 13 14 15)
  3. The letters of Hexadecimal numbers are not case sensitive.
  4. 22

Greetzzzz Fabrice

1 Like
  1. Hexadecimal also contains letters and in effect, big numbers can take less memory (?)
  2. A, B, C, D, E, F (10, 11, 12, 13, 14, 15)
  3. No difference.
  4. 34/16 = 2R[16 * 0.125] = 2R2
    2/16 = 0R[16 *.0.125] = 0R2
    34 in hexadecimal is: 22
2 Likes
  1. Hexadecimal numbers uses 16 Symbols for represention whereas Decimal numbers use 10 Symbols.
  2. ABCDEF
  3. Both lowercase and uppercase letters have different representations in Hexadecimal, ASCII or any other notation.
  4. 22
1 Like
  1. Decimal uses numbers and in Hexadecimal letters can represent numbers also they represents higher numbers.
  2. Do you mean letters A B C D E F representing 10 11 12 13 14 15 or I didn’t got the question :smiley:
  3. It will mean different thing.
  4. Decimal 34 = 22 hex
1 Like
  1. Decimal numbers are 0 to 9 and have 10 decimals while hex numbers have 16 decimals. They use the same 0 to 9 but in addition uses the letters A, B, C, D, E and F.

  2. A=10, B=11, C=12, D=13, E=14 and F=15

  3. There`s no difference

  4. 22 is the hexadecimal for 34

1 Like
  1. Decimal is base 10 ( so from 0 to 9 ) and hexadecimal is base 16 ( from 0 to 9 followed A through F )
  2. A thru F
  3. No difference
  4. 22
1 Like
  1. Decimal numbers are the commonly used numbers in everyday life, Math and Arithmetic. Hexadecimal are fairly similar but are mostly used in computer science environment, alongside with binary base-2. Hexadecimal is a base-16 type of count and it does include letters past the last single decimal digit.

  2. the extra digits are A(10), B(11), C(12), D(13), E(14), F(15).

  3. There is no difference.

  4. 22

1 Like