1 / 8

INTRODUÇÃO A COMPUTAÇÃO

INTRODUÇÃO A COMPUTAÇÃO. SISTEMA NUMÉRICO PARTE 2. Conversão Decimal-Binário. 1000110. (134) 10 = ( ) 2. Divide-se o número decimal por 2 e tomam-se os restos: 134  2 = 67 Resto = 0 67  2 = 33 Resto = 1 33  2 = 16 Resto = 1

Download Presentation

INTRODUÇÃO A COMPUTAÇÃO

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INTRODUÇÃO A COMPUTAÇÃO SISTEMA NUMÉRICO PARTE 2

  2. Conversão Decimal-Binário 1000110 (134)10 = ( )2 • Divide-se o número decimal por 2 e tomam-se os restos: • 134  2 = 67 Resto = 0 • 67  2 = 33 Resto = 1 • 33  2 = 16 Resto = 1 • 16  2 = 8 Resto = 0 • 8  2 = 4 Resto = 0 • 4  2 = 2 Resto = 0 • 2  2 = 1 Resto = 0 • 1  2 = 0 Resto = 1

  3. Conversão Binário - Decimal 22 (10110)2 = ( )10 0  0 1  1 1  2 0  3 1  4  0 x 20 = 0 x 1 = 0  1 x 21 = 1 x 2 = 2  1 x 22 = 1 x 4 = 4  0 x 23 = 0 x 8 = 0  1 x 24 = 0 x 16 = 16 + 22 Posição

  4. Conversão Decimal - Hexa (45)10 = ( )16 2D Basta dividir por 16 e tomar os restos: 45  16 = 2 Resto = 13 2  16 = 0 Resto = 2 Resto = 13  Resto = D Resto = 2  Resto = 2

  5. Conversão Hexa - Decimal • Para converter um número hexadecimal em decimal, nós utilizamos a mesma fórmula utilizada na conversão binário para decimal, sendo que a base 2 é trocada por 16; Exemplo, para converter B2A em decimal: • A -> 10*(16)0 = 10 • 2 -> 2*(16)1 = 32 • B -> 11*(16)2 = 2816 2858

  6. Conversão Octal - Decimal • Para converter um número octal em decimal, nós utilizamos a mesma fórmula utilizada na conversão binário para decimal, sendo que a base 2 é trocada por 8; Exemplo, para converter (57)8 em decimal: 7 x 80 = 7 5 x 81 = 40 (47)10 47

  7. Conversão Decimal - Octal • Basta dividir por 8 e tomar os restos: • 29  8 = 3 Resto = 5 • 3  8 = 0 Resto = 3 (35)8 (29)10 = ( )8

  8. Exercícios:1) Efetue as seguintes conversões de base: a) (100011)2 = ( )10 b) (110011)2 = ( )10 c) (10000000000)2 = ( )10 d) (555)10 = ( )2 e) (128)10 = ( )2 f) (256)10 = ( )2 g)(400)8 = ( )10 h) (100)8 = ( )10 i)(16)10 = ( )8 j)(196)10 = ( )8 k) (16)16 = ( )10 l) (51)16 = ( )10 m) 3. (101)10 = ( )16 n) (4076)10 = ( )16

More Related