String Tools – Python



Numbers – The Inside View

Kinds of number systems:

1. Roman Numerals – Base ?????

2. Decimal – Base 10

3. Binary – Base 2

4. Hexadecimal (“hex”) – Base 16

Key Concepts:

1. Base

2. Positional Notation

3. Powers of the Base

4. Conversion between bases

a. Easy ones (binary, hex)

b. More work (decimal to binary or hex)

See over for some practice!!

1. What is the base 10 equivalent to the binary number 0011 1000?

2. What is the base 10 equivalent to the binary number 0000 1111?

3. What is the base 10 equivalent to the hex number 00?

4. What is the hex equivalent to the binary number 0001 0001?

5. What is the hex equivalent to the binary number 0111 0111?

6. What is the hex equivalent to the binary number 0011 1000?

7. What is the binary equivalent to the hex number FF?

8. What is the decimal equivalent to the hex number 1F?

W.L.Honig for Comp150, Fall 2005.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download