十進制轉二、八、十六進制

2008-10-18 3:53 am
十進制:623.513
點轉二、八、十六進制

回答 (3)

2008-10-18 6:52 pm
✔ 最佳答案
二進制 :

623/2 = 311 餘數是 1
311/2 = 155 餘數是 1
155/2 = 77 餘數是 1
77/2 = 38 餘數是 1
38/2 = 19 餘數是 0
19/2 = 9 餘數是 1
9/2 = 4 餘數是 1
4/2 = 2 餘數是 0
2/2 = 1 餘數是 0

故 623 (base 10) = 1001101111 (base 2)

0.513 * 2 = 0.026 + 1
0.026 * 2 = 0.052 + 0
0.052 * 2 = 0.104 + 0
0.104 * 2 = 0.208 + 0
0.208 * 2 = 0.416 + 0
0.416 * 2 = 0.832 + 0
0.832 * 2 = 0.664 + 1
0.664 * 2 = 0.328 + 1

故 0.513 (base 10) = 0.10000011... (base 2)

623.513 (base 10) = 1001101111.10000011.. (base 2)

八進制/十六進制的做法一樣, 只是由 2 改為 8/16 便可.

623.513 (base 10) = 1157.4065... (base 8)
623.513 (base 10) = 26F.8353... (base 16)
參考: my knowledge
2008-10-18 8:20 pm
623/2 = 311 餘數是 1
311/2 = 155 餘數是 1
155/2 = 77 餘數是 1
77/2 = 38 餘數是 1
38/2 = 19 餘數是 0
19/2 = 9 餘數是 1
9/2 = 4 餘數是 1
4/2 = 2 餘數是 0
2/2 = 1 餘數是 0
623= 1001101111

0.513 * 2 = 0.026 + 1
0.026 * 2 = 0.052 + 0
0.052 * 2 = 0.104 + 0
0.104 * 2 = 0.208 + 0
0.208 * 2 = 0.416 + 0
0.416 * 2 = 0.832 + 0
0.832 * 2 = 0.664 + 1
0.664 * 2 = 0.328 + 1

0.513= 0.10000011...
623.513=1001101111.10000011..
八進制/十六進制的做法一樣, 只是由 2 改為 8/16 便可.

Hope I can help you.
參考: my maths knowledge


收錄日期: 2021-04-19 20:41:49
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20081017000051KK01474

檢視 Wayback Machine 備份