Hex kanggo Octal

Ngonversi nomer heksadesimal dadi oktal kanthi gampang

Alat Konverter

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.

Representasi binar:

Perwakilan desimal:

Babagan Sistem Nomer

Sistem Heksadesimal

Sistem angka heksadesimal, utawa singkatan hex, yaiku sistem angka basis-16 sing nggunakake angka 0-9 lan huruf AF kanggo makili angka 10-15. Heksadesimal umume digunakake ing komputasi lan elektronik digital amarga menehi perwakilan sing luwih ramah manungsa saka nilai kode binar.

Sistem Oktal

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).

Tabel Konversi Heksadesimal nganti Oktal

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

Proses Konversi

Ngonversi saka heksadesimal dadi oktal kalebu rong langkah utama:

  1. Ngonversi saben digit heksadesimal dadi padha karo biner 4-bit.
  2. Group the resulting binary digits into sets of three (starting from the right), and convert each group to its octal equivalent.

Conto: Ngonversi Hex "1A" dadi Octal

Langkah 1: Ngonversi saben digit hex dadi biner 4-bit:

1 → 0001

A → 1010

Gabungan: 0001 1010

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

000 110 100

Langkah 3: Ngonversi saben klompok 3-bit dadi oktal:

000 → 0

110 → 6

100 → 4

Result:

064 (leading zeros can be omitted: 64)

Related Tools