2進−10進変換(小数編)

8桁の2進数(.00000000〜.11111111

b0



1

b-1



1
2
b-2



1
4
b-3



1
8
b-4



1
16
b-5



1
32
b-6



1
64
b-7



1
128
b-8



1
256
 








2-1*b-1
2-2*b-2
2-3*b-3
2-4*b-4
2-5*b-5
2-6*b-6
2-7*b-7
2-8*b-8

10進数(0〜0.99



   2-1*b-1+2-2*b-2+2-3*b-3+2-4*b-4+2-5*b-5+2-6*b-6+2-7*b-7+2-8*b-8
  = (20*b-1+2-1*b-2+2-2*b-3+2-3*b-4+2-4*b-5+2-5*b-6+2-6*b-7+2-7*b-8)/2
  = (b-1+2-1*b-2+2-2*b-3+2-3*b-4+2-4*b-5+2-5*b-6+2-6*b-7+2-7*b-8)/2
  = (b-1+(2-0*b-2+2-1*b-3+2-2*b-4+2-3*b-5+2-4*b-6+2-5*b-7+2-6*b-8)/2)/2
  = (b-1+(b-2+(2-0*b-3+2-1*b-4+2-2*b-5+2-3*b-6+2-4*b-7+2-5*b-8)/2)/2)/2
  = (b-1+(b-2+(b-3+(2-0*b-4+2-1*b-5+2-2*b-6+2-3*b-7+2-4*b-8)/2)/2)/2)/2
  = (b-1+(b-2+(b-3+(b-4+(2-0*b-5+2-1*b-6+2-2*b-7+2-3*b-8)/2)/2)/2)/2)/2
  = (b-1+(b-2+(b-3+(b-4+(b-5+(2-0*b-6+2-1*b-7+2-2*b-8)/2)/2)/2)/2)/2)/2
  = (b-1+(b-2+(b-3+(b-4+(b-5+(b-6+(2-0*b-7+2-1*b-8)/2)/2)/2)/2)/2)/2)/2
  = (b-1+(b-2+(b-3+(b-4+(b-5+(b-6+(b-7+(2-0*b-8)/2)/2)/2)/2)/2)/2)/2)/2
  = (b-1+(b-2+(b-3+(b-4+(b-5+(b-6+(b-7+(b-8)/2)/2)/2)/2)/2)/2)/2)/2

 「2のべき乗表」を表示

戻る
ご意見などはこちらまで deguchi@kc.kobe-c.ac.jp ご質問等もお気軽に!
Copyright © 2002 DEGUCHI Hiroshi, All Rights Reserved.