NumberRepresentation-1

NumberRepresentation-1 - Kingdom Of Saudi Arabia Al-Imam...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Number Representation Chapter 3 in “Foundation of Computer System” Kingdom Of Saudi Arabia Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Information System Department 1 st semester, 2010 – 2011 CS 224: Computer Organization 1 T. Hala A. Al-Rumaih
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Decimal and binary Two numbering systems are dominant today in the world of computers: 2
Background image of page 2
Decimal System We all readily understand the decimal numbering system. But is it really under stand: Why the second position in the decimal system is tens and the third position is hundreds? The answer lies in the powers of the base (weight) of the system. The base in the decimal system is = 10. The first position is raised to the power 0 The second position is raised to the power 1 The third position is raised to the power 3 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Decimal System (Cont.) 4
Background image of page 4
Binary system Whereas the decimal system is based on 10 , the binary system is based on 2 . There are only two digits in the binary system 0 and 1 . 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Conversion Binary to Decimal Conversion: 1. Start with binary number and multiply each binary digit by its weight ( Base 2 ) Since each binary bit can be only 0 or 1 the result will be either 0 or the value of the weight. 1. After multiplying all the digits, add the results. 6
Background image of page 6
Conversion (Cont.) EX: Convert the binary number 10011 to decimal. Write out the bits and their weights. Multiply the bit by its corresponding weight and record the result. At the end, add the results to get the decimal number. 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
(Cont.) Decimal to Binary Conversion: 1. Repeatedly division by 2 , the process continues until the quotient is 0 2. The result will be the remainder of the division ( 0 or 1 ) take it from up to down, write it from right to left. 8
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 30

NumberRepresentation-1 - Kingdom Of Saudi Arabia Al-Imam...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online