1 / 18

情報ネットワーク論 第4回

情報ネットワーク論 第4回. 2002.9.27 ー n 進法 (3) 8 進法と 16 進法 ー. ・・・  10 進数でいう 8 で桁が上がる. 8進法. 1. 数え方 - 10 進法との比較-. 10 進法 1 2 3 4 5 6 7 8  9   10 11 12 13 14 15 16 17 18 19 20 21 ・・・ ● ● ● ● ● ● ● ● ●  ● ●  ●  ● ● ● ● ● ●  ● ● ●

pules
Download Presentation

情報ネットワーク論 第4回

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. 情報ネットワーク論第4回 2002.9.27ー n進法(3)8進法と16進法 ー

  2. ・・・ 10進数でいう8で桁が上がる 8進法 1. 数え方 -10進法との比較- 10進法 1 2 3 4 5 6 7 8 9  101112131415161718192021・・・ ● ● ● ● ● ● ● ● ●  ● ●  ●  ● ● ●● ● ●  ● ● ● 8進法   1 2 3 4 5 6 7 1011121314151617 2021222324 25 ・・・ • 2. 数え方 -桁の考え方- • 下の赤丸を数える

  3. 10 + 10 5 + 10 + = 35 10進数・・・10n ごとのまとまり (1)

  4. 10 10 10 10 100 7 100 = 247 10進数・・・10n ごとのまとまり (2)

  5. 10進数・・・10n ごとのまとまり (3) 2 4 7 (10) ××× 102101100 ↓  ↓ ↓ 200 40 7= 247(10)

  6. 10 + 10 + 10 3 + 10 + = 43(8) 8進数・・・8n ごとのまとまり (1)

  7. 10 7 10 10 10 10 100 100 100 = 357 8進数・・・8n ごとのまとまり (2)

  8. 8進数・・・8n ごとのまとまり (3) 3 5 7 (8) ×× × 828180 ↓  ↓ ↓ 192 40 7 = 239(10)

  9. 8 2475 (10) ・・・ 3 8 309 (10) ・・・ 5 8 38 (10) ・・・ 6 4 (10) 10進数から8進数へ (1)

  10. 8 2475 ・・・ 3 8 309 ・・・ 5 8 38 ・・・ 6 4 2475(10) = 4653(8) 10進数から8進数へ(2)

  11. ・・・ 10進数でいう16で桁が上がる 16進法 1. 数え方 -10進法との比較- 10進法 1 2 3 4 5 6 7 8 9  101112131415161718192021・・・ ● ● ● ● ● ● ● ● ●  ● ●  ● ● ●  ●● ● ●  ● ● ● 16進法  1 2 3 4 5 6 7 8 9  A B C D E F 10 1112131415・・・ 2. 数え方 -桁の考え方-

  12. 3 + 10 10 + = 23(16) 16進数・・・16n ごとのまとまり (1)

  13. B + 10 10 + = 2B(16) 16進数・・・16n ごとのまとまり (2)

  14. 16 2475 (10) ・・・ (11)・・・B 16 154 (10) ・・・ (10)・・・A 9 10進数から16進数へ(1)

  15. 16 2475 (10) ・・・B 16 154 (10) ・・・A 9 2475(10) = 9AB(16) 10進数から16進数へ(2)

  16. 16進数・・・16n ごとのまとまり (3) 9 A B (16) ×× × 162 161160 ↓  ↓ ↓ 9×162 A×161 B×160 9×162 10×161 11×160 2304 160 11 = 2475(10)

  17. 何故16進法?(1) • 基本: • コンピュータやコンピュータネットワークでやりとりされている情報は0と1の2種類の信号からなる • 2進数はコンピュータやコンピュータネットワークの内部処理やしくみを記述するのに便利

  18. 何故16進法?(2) 2進数 8進数 10進数 16進数 1 1 1 1 10 2 2 2 100 4 4 4 1000 10 8 8 10000 20 16 10 100000 40 32 20 1000000 100 64 40 10000000 200 128 80 100000000 400 256 100 1000000000 1000 512 200 10000000000 2000 1024 400 100000000000 4000 2048 800 1000000000000 10000 4096 1000 • 2進数でくらいが上がる時、8進数や16進数はきりがいい数字・・・扱いやすい。 • 16進数は数字が大きくなっても桁の上がり方が少ないので、大きな数字を表記するのに便利。 • 使用例: • IPv6のIPアドレス • メモリ空間の番地

More Related