1 / 2

演習問題 1.1 解答例(1)

演習問題 1.1 解答例(1). 1. 4桁の16進数: (0111 0000 1000 0111) 2 = #7087. 10進数: (0111 0000 1000 0111) 2 = 7 * 2 12 + 0 * 2 8 + 8 * 2 4 + 7 * 2 0 = 7*4096+0*256+8*16+7*1 = 28672+128+7. = 28807. 2. 16桁の2進数: #200B = (0010 0000 0000 1011) 2 . 10進数: #200B

Download Presentation

演習問題 1.1 解答例(1)

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. 演習問題 1.1 解答例(1) 1. 4桁の16進数: (0111 0000 1000 0111)2 = #7087. 10進数: (0111 0000 1000 0111)2 = 7 * 212 + 0 * 28 + 8 * 24 + 7 * 20 = 7*4096+0*256+8*16+7*1 = 28672+128+7. = 28807. 2. 16桁の2進数: #200B = (0010 0000 0000 1011)2. 10進数: #200B = 2*163 +11 = 8203.

  2. 演習問題 1.1 解答例(2) 3. 16桁の2進数: 30000 を2で割って商と余りを得て,その商をまた2で割って商と余りを得るという操作を再帰的に繰り返し,得られた余りを下位ビットから並べれば (0111 0101 0011 0000)2. 4桁の16進数: 上の結果から #7530. 4. 16桁の2進数: 30000 の2進表現は (0111 0101 0011 0000)2だからそれに対する2の補数をとって (1000 1010 1101 0000)2. 4桁の16進数: 上の結果から #8AD0.

More Related