number systems decimal binary denary octal hexadecimal click the mouse or press the space bar to...

43
Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space Click the mouse or Press the space bar to Continue bar to Continue

Upload: heaven-ruston

Post on 02-Apr-2015

239 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Number SystemsDecimal

Binary

Denary

Octal

Hexadecimal

Click the mouse or Press the space bar to ContinueClick the mouse or Press the space bar to Continue

Page 2: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Exponents

20 = 1 21 = 222 = 2 x 2 =4 23 = 2 x 2 x 2 = 8 x5 + x10 = x15

1 / x2 = x -2

Click to ContinueClick to Continue

Page 3: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal Numbering systems

Base: 10 Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Representation

5234

 Thousands Hundreds Tens Units 5 2 3 4

Click to ContinueClick to Continue

Page 4: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal Numbering systems

Example: 523410

 103 = 1000 102 = 100 101 = 10 100 = 1 5 2 3 4

5,234 = 5 x 1000 + 2 x 100 + 3 x 10 + 4 x 1 

Click to ContinueClick to Continue

Page 5: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary Numbering systems

Base: 2 Digits: 0, 1 binary number: 1101012

positional powers of 2: 25 24 23 22 21 20

decimal positional value: 32 16 8 4 2 1

binary number: 1 1 0 1 0 1Click to ContinueClick to Continue

Page 6: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Decimal Conversion

To convert to base 10, add all the values where a one digit occurs.

Ex: 1101012

positional powers of 2: 25 24 23 22 21 20

decimal positional value: 32 16 8 4 2 1

binary number: 1 1 0 1 0 1

32 + 16 + 4 + 1 = 5310

Click to ContinueClick to Continue

Page 7: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Decimal Conversion

Ex: 1010112

positional powers of 2: 25 24 23 22 21 20

decimal positional value:

binary number:

Click to ContinueClick to Continue

Page 8: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Binary Conversion

The Division Method. Divide by 2 until you reach zero, and then collect the remainders in reverse.

  Ex 1: 5610 = 1110002 2 ) 56 Rem:2 ) 28 02 ) 14 02 ) 7 02 ) 3 12 ) 1 1 0 1

Click to ContinueClick to Continue

Page 9: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Binary Conversion

Ex 2: 3510 =

2 ) Rem:2 ) 2 ) 2 ) 2 ) 2 )

Answer: 3510 = 2

 

Click to ContinueClick to Continue

Page 10: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Binary Conversion

The Subtraction Method:

Subtract out largest power of 2 possible (without going below zero) each time until you reach 0. Place a one in each position where you were able to subtract the value, and a 0 in each position that you could not subtract out the value without going below zero.

Click to ContinueClick to Continue

Page 11: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Binary Conversion

Ex 1: 5610

56 26 | 25 24 23 22 21 20

- 32 64 | 32 16 8 4 2 1 24 | 1 1 1 0 0 0 - 16

8 - 8

0

  Answer: 5610 = 1110002

Click to ContinueClick to Continue

Page 12: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Binary Conversion

Ex 2: 3810

38 26 | 25 24 23 22 21 20

| |

  Answer: 3810 = 2

Click to ContinueClick to Continue

Page 13: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Character Representation ASCII Table

Rightmost Leftmost Three BitsFour Bits 000 001 010 011 100 101 110 1110000 NUL DLE Space 0 @ P ` p0001 SOH DC1 ! 1 A Q a q0010 STX DC2 " 2 B R b r0011 ETX DC3 # 3 C S c s0100 EOT DC4 $ 4 D T d t0101 ENQ NAK % 5 E U e u0110 ACK SYN & 6 F V f v0111 BEL ETB ' 7 G W g w1000 BS CAN ( 8 H X h x1001 HT EM ) 9 I Y I y1010 LF SUB * : J Z j z1011 VT ESC + ; K [ k {1100 FF FS , < L \ l |1101 CR GS - = M ] m } 1110 SO RS . > N ^ n ~1111 SI US / ? O _ o DEL

Click to ContinueClick to Continue

Page 14: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Character Representation

Ex: Find the binary ASCII and decimal ASCII values for the ‘&’ character.

 Rightmost Leftmost Three BitsFour Bits 000 001 010 011 100 101 110 1110000 NUL DLE Space 0 @ P ` p0001 SOH DC1 ! 1 A Q a q0010 STX DC2 " 2 B R b r0011 ETX DC3 # 3 C S c s0100 EOT DC4 $ 4 D T d t0101 ENQ NAK % 5 E U e u0110 ACK SYN && 6 F V f v0111 BEL ETB ' 7 G W g w1000 BS CAN ( 8 H X h x1001 HT EM ) 9 I Y I y1010 LF SUB * : J Z j z1011 VT ESC + ; K [ k {1100 FF FS , < L \ l |1101 CR GS - = M ] m } 1110 SO RS . > N ^ n ~1111 SI US / ? O _ o DEL

Click to ContinueClick to Continue

Page 15: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Character Representation ASCII Table

From the chart:

‘&’ = 0100110 (binary ASCII value)

Convert the binary value to decimal:

01001102 = 32 + 4 + 2 = 3810

 

Therefore:

‘&’ = 38 (decimal ASCII value)Click to ContinueClick to Continue

Page 16: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal Numbering systems

Base: 8 Digits: 0, 1, 2, 3, 4, 5, 6, 7 Octal number: 12468

powers of : 84 83 82 81 80

decimal value: 4096 512 64 8 1

Octal number: 1 2 4 6

Click to ContinueClick to Continue

Page 17: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal to Decimal Conversion

To convert to base 10, beginning with the rightmost digit multiply each nth digit by 8(n-1), and add all of the results together.

Ex: 12468

positional powers of 8: 83 82 81 80

decimal positional value: 512 64 8 1Octal number: 1 2 4 6

512 + 128 + 32 + 6 = 67810 Click to ContinueClick to Continue

Page 18: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal to Decimal Conversion

Ex: 103528

positional powers of 8: 84 83 82 81 80

decimal positional value:

Octal number:

Click to ContinueClick to Continue

Page 19: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Octal Conversion

The Division Method. Divide by 8 until you reach zero, and then collect the remainders in reverse.

  Ex 1: 433010 = 103528 8 ) 4330 Rem:8 ) 541 28 ) 67 58 ) 8 38 ) 1 0

0 1

Click to ContinueClick to Continue

Page 20: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Octal Conversion

Ex 2: 81010 =

8 ) 810 Rem:8 ) 8 ) 8 )

Answer: 81010 = 8  

Click to ContinueClick to Continue

Page 21: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Octal Conversion

The Subtraction Method:

Subtract out multiples of the largest power of 8 possible (without going below zero) each time until you reach 0. Place the multiple value in each position where you were able to subtract the value, and a 0 in each position that you could not subtract out the value without going below zero.

Click to ContinueClick to Continue

Page 22: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Octal Conversion

Ex 1: 201810

2018 84 | 83 82 81 80

- 1536 4096 | 512 64 8 1 482 | 3 7 4 2 - 448

34 - 32

2 - 2

0 Answer: 201810 = 37428

Page 23: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Octal Conversion

Ex 2: 76510

765 84 | 83 82 81 80

| |

  Answer: 76510 = 8

Page 24: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexadecimal Numbering systems

Base: 16 Digits: 0, 1, 2, 3, 4, 5, 6, 7,8,9,A,B,C,D,E,F Hexadecimal number: 1F416

powers of : 164 163 162 161 160

decimal value: 65536 4096 256 16 1

Hexadecimal number: 1 F 4

Page 25: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexadecimal Numbering systems

Four-bit Group Decimal Digit Hexadecimal Digit 0000 0 0 0001 1 1 0010 2 2 0011 3 3 0100 4 4 0101 5 5 0110 6 6 0111 7 7 1000 8 8 1001 9 9 1010 10 A 1011 11 B 1100 12 C 1101 13 D 1110 14 E 1111 15 F

Page 26: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexa to Decimal Conversion

To convert to base 10, beginning with the rightmost digit multiply each nth digit by 16(n-1), and add all of the results together.

Ex: 1F416

positional powers of 16: 163 162 161 160

decimal positional value: 4096 256 16 1Hexadecimal number: 1 F 4

256 + 240 + 4 = 50010

Page 27: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexa to Decimal Conversion

Ex: 7E16

positional powers of 16: 163 162 161 160

decimal positional value:

Hexa number:

Page 28: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Hexa Conversion

The Division Method. Divide by 16 until you reach zero, and then collect the remainders in reverse.

  Ex 1: 12610 = 7E16 16) 126 Rem:16) 7 14=E

0 7

Page 29: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Hexa Conversion

Ex 2: 81010 =

16 ) 810 Rem:16 ) 16 )

Answer: 81010 = 16  

Page 30: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Hexa Conversion

The Subtraction Method:

Subtract out multiples of the largest power of 16 possible (without going below zero) each time until you reach 0. Place the multiple value in each position where you were able to subtract the value, and a 0 in each position that you could not subtract out the value without going below zero.

Page 31: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Hexa Conversion

Ex 1: 81010

810 163 | 162 161 160

- 768 4096 | 256 16 1

42 | 3 2 A

- 32

10

- 10

0 Answer: 81010 = 32A16

Page 32: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Decimal to Hexa Conversion

Ex 2: 15610

156 162 | 161 160

|

|

Answer: 15610 = 16

Page 33: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Octal Conversion

Since the maximum value represented in 3 bit is equal to:

23 – 1 = 7

i.e. using 3 bits we can represent values from 0 –7

which are the digits of the Octal numbering system.

Thus, three binary digits can be converted to one octal digit.

Page 34: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Octal Conversion

Three-bit Group Decimal Digit Octal Digit 000 0 0 001 1 1 010 2 2 011 3 3 100 4 4 101 5 5 110 6 6 111 7 7

Page 35: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal to Binary Conversion

Ex :

Convert 7428 = 2

7 = 1114 = 1002 = 010

7428 = 111 100 0102

Page 36: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Octal Conversion

Ex :

Convert 101001102 = 8

110 = 6100 = 4010 = 2 ( pad empty digits with 0)

101001102 = 2468

Page 37: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Hexa Conversion

Since the maximum value represented in 4 bit is equal to:

24 – 1 = 15 i.e. using 4 bits we can represent values from 0 –15which are the digits of the Hexadecimal numbering

system.Thus, Four binary digits can be converted to one

Hexadecimal digit.

Page 38: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Hexa conversion

Four-bit Group Decimal Digit Hexadecimal Digit 0000 0 0 0001 1 1 0010 2 2 0011 3 3 0100 4 4 0101 5 5 0110 6 6 0111 7 7 1000 8 8 1001 9 9 1010 10 A 1011 11 B 1100 12 C 1101 13 D 1110 14 E 1111 15 F

Page 39: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexa to Binary Conversion

Ex :

Convert 3D98 = 2

3 = 0011 D = 1101 9 = 1001

3D98 = 0011 1101 10012

Page 40: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Binary to Hexa Conversion

Ex :

Convert 101001102 = 8

0110 = 6

1010 = A

101001102 = A616

Page 41: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal to Hexa Conversion

To convert between Octal to Hexadecimal numbering systems and visa versa convert from one system to binary first then convert from binary to the new numbering system

Page 42: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Hexa to Octal Conversion

Ex :Convert E8A16 = 8

1110 1000 10102

111 010 001 010 (group by 3 bits)

7 2 1 2

E8A16 = 72178

Page 43: Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue

Octal to Hexa Conversion

Ex :Convert 7528 = 16

111 101 0102 (group by 4 bits)

0001 1110 1010

1 E A

7528 = 1EA16