回覆列表
  • 1 # kulnn4396

    按照IEEE-754標準規定,單精度浮點數用4位元組儲存,分為三個部分:符號位S、階E和尾數D。階即指數,尾數即有效小數位數。單精度格式階佔8位,尾數佔24位(歸一化資料去首位1結果為23位),符號位1位,換算公式為Data=S*2^(E-127)*(D)。11000001111000000000000000000000==>11000001111000000000000000000000==>1位8位23位SED"(歸一化去1結果)11000001111000000000000000000000110000011110000000000000000000001100000110.11000000000000000000000==>SED(補1.還原歸一化結果)1100000111+0.110000000000000000000001831+0.11000000000000000000000==>二進位制小數0.11B=>十進位制0.5+0.25=0.75SED整數(2進位制)D小數(2進位制)1831+0.1100000000000000000000010x831.1100000000000000000000010x831+0.1100000000000000000000011311+0.7511311.75==》SED11311.75=>二進位制純小數Data=S*2^(E-127)*(D)=(-1)*2^(131-127)*(1.75)=(-1)*(2^4)*(1.75)=-1*16*1.75=-28.0

  • 中秋節和大豐收的關聯?
  • 怎樣把模具費分攤到每個產品裡?