Hex til oktal

Konverter hexadecimale tal til oktal uden besvær

Konverterværktøj

0 characters

Enter a hexadecimal number (0-9, A-F). The '0x' prefix is optional. The conversion will automatically handle both positive and negative numbers.

Binær repræsentation:

Decimal Repræsentation:

Om talsystemer

Hexadecimalt system

Det hexadecimale talsystem, eller hex for kort, er et base-16-talsystem, der bruger cifrene 0-9 og bogstaverne A-F til at repræsentere værdierne 10-15. Hexadecimal bruges almindeligvis i computere og digital elektronik, fordi det giver en mere menneskevenlig repræsentation af binære kodede værdier.

Oktalt system

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).

hexadecimal til oktal konverteringstabel konverteringsproces

Hexadecimal Octal Hexadecimal Octal
0 0 8 10
1 1 9 11
2 2 A 12
3 3 B 13
4 4 C 14
5 5 D 15
6 6 E 16
7 7 F 17

Konverteringsproces

Konvertering fra hexadecimal til oktal involverer to hovedtrin:

  1. Konverter hvert hexadecimalt ciffer til dets 4-bit binære ækvivalent.
  2. Group the resulting binary digits into sets of three (starting from the right), and convert each group to its octal equivalent.

Eksempel: Konverter Hex "1A" til oktal

Trin 1: Konverter hvert hex-ciffer til 4-bit binært:

1 → 0001

A → 1010

Kombineret: 0001 1010

Step 2: Group binary digits into sets of three (from right):

000 110 100

Trin 3: Konverter hver 3-bit gruppe til oktal:

000 → 0

110 → 6

100 → 4

Result:

064 (leading zeros can be omitted: 64)

Related Tools