【二進制及十六進制:數系轉換】Binary and Hexadecimal: Converting Between Number Bases

SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20

二進制只用數字 0 及 1,位值是 1, 2, 4, 8, …。十六進制用 0–9 及 A–F(A = 10 … F = 15),位值是 1, 16, 256, …。二進制由右至左每四位一組,便可轉為十六進制。Binary uses the digits 0 and 1 with place values 1, 2, 4, 8, …. Hexadecimal uses 0–9 and A–F (A = 10 … F = 15) with place values 1, 16, 256, …. Group binary digits in fours from the right to change to hexadecimal.

用 AI 逐步解二進制及十六進制題目 Solve it with AI

數系重點 Number Base Facts

二進制轉十進制Binary to decimal把數字為 1 的位值相加Add the place values where the digit is 1
十進制轉二進制Decimal to binary不斷除以 2,餘數由下而上讀出Divide by 2 repeatedly; read the remainders upwards
十六進制數字Hexadecimal digitsA = 10, B = 11, C = 12, D = 13, E = 14, F = 15
二進制轉十六進制Binary to hexadecimal由右至左每 4 位一組Group in 4 bits from the right
↑ 返回頁頂 Back to top

指數 Index 與指數記數法 Index Notation Index and Index Notation

指數嘅呈現方式為任何數字或者代數嘅右上角,就例如大家都好熟悉嘅畢氏定理:a² + b² = c²,當中黐住 a、b、c 嘅 2 次方就係指數喇!指數嘅實際意思,其實就係「底 (base) 乘以自己幾多次」:a² = a · a。(注:次方嘅計算優先度 > 括號 > 乘除 > 加減。)

例子:a · a · a · a · a · a · a · a · a · a = a¹⁰(a 嘅 10 次方)。

An index is the small number written at the top right of a number or letter. The Pythagorean theorem is a familiar example: a² + b² = c², where the 2 is the index. An index means "the base multiplied by itself that many times": a² = a · a. We read "a to the power n". For example a · a · a · a · a · a · a · a · a · a = a¹⁰. (Order of operations: powers come before brackets, then multiplication and division, then addition and subtraction.)

↑ 返回頁頂 Back to top

指數定律 Laws of Indices

  1. aᵐ · aⁿ = aᵐ⁺ⁿ
  2. aᵐ ÷ aⁿ = aᵐ⁻ⁿ
  3. (aᵐ)ⁿ = aᵐⁿ
  4. (ab)ⁿ = aⁿ · bⁿ
  5. (a/b)ⁿ = aⁿ / bⁿ
↑ 返回頁頂 Back to top

進制 Numeral systems 與數碼 Digits Numeral Systems and Digits

我哋從小到大都學緊「逢十進一」,但點解一定要逢十先進一?如果逢二進一或者逢十六進一又得唔得呢?答案係可以!「進制」又叫「進位制」,係一種記數方式嘅統稱。喺數學 DSE 嘅世界,我哋需要學識三種進制:十進制、二進制、十六進制。至於點樣去表示佢係咩進制,通常我哋會將進制寫喺數字嘅右下角:104₁₀(十進制)、1001101₂(二進制)、14FB2₁₆(十六進制)。

數碼 Digits 就係一個進制可以使用嘅數字:十進制 0–9;二進制 0、1;十六進制 0–9 及 A–F(A 到 F 分別代表 10 至 15,因為十六進制係逢十六先進一,所以需要創造一啲「數字」出嚟)。

We have always counted "carry one at ten", but why must it be ten? Counting "carry one at two" or "carry one at sixteen" also works. A numeral system is the general name for a way of writing numbers, and HKDSE needs three: decimal, binary and hexadecimal. The system is written as a subscript to the right of the number: 104₁₀ (decimal), 1001101₂ (binary), 14FB2₁₆ (hexadecimal).

Digits are the symbols a system may use: decimal 0–9; binary 0 and 1; hexadecimal 0–9 and A–F (A to F stand for 10 to 15, because "carry one at sixteen" needs six extra digits).

↑ 返回頁頂 Back to top

十進制、二進制、十六進制 Decimal, Binary and Hexadecimal

十進制顧名思義就係逢十進一,比如 483 其實攤返長寫係:400 + 80 + 3 = 4 × 10² + 8 × 10¹ + 3 × 10⁰(任何數嘅 0 次方都係等於 1)。

二進制同樣道理:1101₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰ = 13₁₀。

十六進制亦然:F14B₁₆ = 15 × 16³ + 1 × 16² + 4 × 16¹ + 11 × 16⁰ = 61771₁₀。

Decimal means "carry one at ten": 483 is really 400 + 80 + 3 = 4 × 10² + 8 × 10¹ + 3 × 10⁰ (any number to the power 0 is 1).

Binary works the same way: 1101₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰ = 13₁₀.

So does hexadecimal: F14B₁₆ = 15 × 16³ + 1 × 16² + 4 × 16¹ + 11 × 16⁰ = 61771₁₀.

↑ 返回頁頂 Back to top

進制間之轉換 Conversion between numeral systems

  • 十進制轉換為二進制:利用短除法,不斷除 2,然後當成功整除或餘數剩 1 時停止,將餘數從下而上記錄。例:13₁₀ = 1101₂。
  • 十進制轉換為十六進制:利用短除法,不斷除 16,然後當商細於 16 時停止,將餘數從下而上記錄。例:2588 ÷ 16 = 161 餘 12(C);161 ÷ 16 = 10 餘 1;10 即 A。所以 2588₁₀ = A1C₁₆。
  • 二進制轉換為十進制:利用拓展法將數值擴寫,再計算答案。1101₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰ = 13₁₀。
  • 十六進制轉換為十進制:利用拓展法將數值擴寫,再計算答案。F14B₁₆ = 61771₁₀。
  • 二進制轉換為十六進制,及十六進制轉換為二進制:先轉為十進制,再進行短除。

大部分科學計數機都有基數計算模式,可以喺 DEC(十進制)、BIN(二進制)、HEX(十六進制)之間轉換;詳細步驟請參考你部計數機嘅說明書,計完記得切換返正常計算模式。

  • Decimal to binary: divide by 2 again and again, until it divides exactly or the remainder is 1, and write the remainders from bottom to top. Example: 13₁₀ = 1101₂.
  • Decimal to hexadecimal: divide by 16 again and again, until the quotient is less than 16, and write the remainders from bottom to top. Example: 2588₁₀: 2588 ÷ 16 = 161 remainder 12 (C); 161 ÷ 16 = 10 remainder 1; 10 is A. So 2588₁₀ = A1C₁₆.
  • Binary to decimal: expand by place value. 1101₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰ = 13₁₀.
  • Hexadecimal to decimal: expand by place value. F14B₁₆ = 61771₁₀.
  • Binary to hexadecimal, and hexadecimal to binary: go through decimal, converting to decimal first and then dividing.

Most scientific calculators have a base-n mode that converts between DEC, BIN and HEX; check your own model's manual, and remember to switch back to normal calculation mode afterwards.

↑ 返回頁頂 Back to top

二進制及十六進制例題詳解 Worked Examples

例題 1 Example 1:二進制轉十進制 Binary to decimal

把 1101101₂ 轉為十進制。Convert 1101101₂ to a decimal number.

  1. 1×64 + 1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1
  2. 64 + 32 + 8 + 4 + 1

答案: Answer: 109

例題 2 Example 2:十進制轉二進制 Decimal to binary

把 109 轉為二進制。Convert 109 to binary.

  1. 不斷除以 2:109、54、27、13、6、3、1,餘數依次是 1、0、1、1、0、1、1Divide by 2: 109, 54, 27, 13, 6, 3, 1 with remainders 1, 0, 1, 1, 0, 1, 1
  2. 由下而上讀出餘數:1101101Read the remainders from the bottom: 1101101

答案: Answer: 1101101₂

例題 3 Example 3:二進制轉十六進制 Binary to hexadecimal

把 10111100₂ 轉為十六進制。Convert 10111100₂ to hexadecimal.

  1. 每四位一組:1011 | 1100Group in fours: 1011 | 1100
  2. 1011 = 11 = B, 1100 = 12 = C

答案: Answer: BC₁₆

↑ 返回頁頂 Back to top

💡 應試陷阱與秘訣 Exam Traps & Secrets

⚠️ 餘數要由下而上讀 Read the remainders upwards第一個餘數是最後一位數字,由上而下讀會把數字倒轉。The first remainder is the last digit. Reading from the top reverses the number.
↑ 返回頁頂 Back to top

✏️ 自我測試:互動練習 Self-Test: Interactive Practice

溫習方法:點擊以下任何題目,即時在坐標網格載入並核對計算步驟。How to study: click any question to load it on the coordinate grid and check your steps.

(十六進制轉十進制 Hex to decimal)把 3A₁₆ 轉為十進制。Convert 3A₁₆ to decimal.
(十進制轉十六進制 Decimal to hex)把 255 轉為十六進制。Convert 255 to hexadecimal.
(二進制加法 Binary addition)以二進制計算 1011₂ + 110₂。Add 1011₂ and 110₂ in binary.
↑ 返回頁頂 Back to top

常見問題 Frequently Asked Questions

↑ 返回頁頂 Back to top

相關主題 Related Topics

指數定律 Laws of Indices四捨五入 Rounding Off, Up and DownHKDSE 數學全部課題 HKDSE Math: all topicsDSE 數學公式表(全課題) HKDSE Maths Formula SheetDSE 數學練習(按年級) DSE Maths Practice by Form
二進制及十六進制 DSE 練習題 Try a DSE Practice Question