0% found this document useful (0 votes)
177 views16 pages

Number System 2

1. The document discusses various number systems including base 10, base 2, and hexadecimal. It defines common prefixes like kilo, mega, and giga and their corresponding powers of 10 or 2. 2. Examples are provided for operations like addition, multiplication, and conversions between binary, decimal, and hexadecimal numbers. Common calculation techniques are illustrated like propagating carries in binary addition. 3. Fractions are demonstrated being converted between decimal and binary representation by breaking the number into a sum of powers of 2. Exercises are given to convert sample values between decimal, binary, and hexadecimal without a calculator.

Uploaded by

ahmed Alanazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views16 pages

Number System 2

1. The document discusses various number systems including base 10, base 2, and hexadecimal. It defines common prefixes like kilo, mega, and giga and their corresponding powers of 10 or 2. 2. Examples are provided for operations like addition, multiplication, and conversions between binary, decimal, and hexadecimal numbers. Common calculation techniques are illustrated like propagating carries in binary addition. 3. Fractions are demonstrated being converted between decimal and binary representation by breaking the number into a sum of powers of 2. Exercises are given to convert sample values between decimal, binary, and hexadecimal without a calculator.

Uploaded by

ahmed Alanazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Number Systems
Common Powers (1 of 2)
• Base 10
Power Preface Symbol Value
10-12 pico p .000000000001

10-9 nano n .000000001

10-6 micro  .000001

10-3 milli m .001

103 kilo k 1000

106 mega M 1000000

109 giga G 1000000000


1012 tera T 1000000000000
Common Powers (2 of 2)
• Base 2
Power Preface Symbol Value
210 kilo k 1024

220 mega M 1048576

230 Giga G 1073741824

• What is the value of “k”, “M”, and “G”?


• In computing, particularly w.r.t. memory,
the base-2 interpretation generally applies
Example
In the lab…
1. Double click on My Computer
2. Right click on C:
3. Click on Properties

/ 230 =
Review – multiplying powers
• For common bases, add powers

ab  ac = ab+c

26  210 = 216 = 65,536


or…
26  210 = 64  210 = 64k
Binary Addition (1 of 2)
• Two 1-bit values

A B A+B
0 0 0
0 1 1
1 0 1
1 1 10
“two”

pp. 36-38
Binary Addition (2 of 2)
• Two n-bit values
– Add individual bits
– Propagate carries
– E.g.,

1 1
10101 21
+ 11001 + 25
101110 46
Multiplication (1 of 3)
• Decimal (just for fun)

35
x 105
175
000
35
3675

pp. 39
Multiplication (2 of 3)
• Binary, two 1-bit values

A B AB
0 0 0
0 1 0
1 0 0
1 1 1
Multiplication (3 of 3)
• Binary, two n-bit values
– As with decimal values
– E.g.,
1110 1 with all , 1 with all , 0 with all , 1 with all

x 1011
1110
1110
0000
1110
10011010
Fractions
• Decimal to decimal (just for fun)

3.14 => 4 x 10-2 = 0.04


1 x 10-1 = 0.1
3 x 100 = 3
3.14

pp. 46-50
Fractions
• Binary to decimal

10.1011 => 1 x 2-4 = 0.0625


1 x 2-3 = 0.125
0 x 2-2 = 0.0
1 x 2-1 = 0.5
0 x 20 = 0.0
1 x 21 = 2.0
2.6875

pp. 46-50
Fractions
• Decimal to binary .14579
x 2
3.14579 0.29158
x 2
0.58316
x 2
1.16632
x 2
0.33264
x 2
0.66528
x 2
1.33056
11.001001... etc.

p. 50
Exercise – Convert ...
Hexa-
Decimal Binary decimal
33
1110101

1AF

Don’t use a calculator!

Skip answer Answer


ITEC 1011 Introduction to Information Technologies
Exercise – Convert …
Answer

Hexa-
Decimal Binary decimal
33 100001 21
117 1110101 75
451 111000011 1C3
431 110101111 1AF

ITEC 1011 Introduction to Information Technologies


Thank you

Next topic

You might also like