Lompat ke isi

Heksadesimal: Perbedaan antara revisi

Ensiklopedia Pengetahuan Universitas Islam Sultan Agung
Maintenance script (bicara | kontrib)
Impor teks terkontrol dari Wikipedia bahasa Indonesia; revisi 27383687; atribusi sumber disertakan.
 
Maintenance script (bicara | kontrib)
Presentation V4: sitasi, referensi, Math, Wikimedia Commons, dan atribusi
 
Baris 1: Baris 1:
[[File:Numeral_Systems_of_the_World.svg|thumb|right|280px|Numeral Systems of the World]]
'''Heksadesimal''' atau '''bilangan perenambelasan''' adalah sebuah [[sistem bilangan]] yang menggunakan 16 simbol. Berbeda dengan [[sistem bilangan desimal]], simbol yang digunakan dari sistem ini adalah angka 0 sampai 9, ditambah dengan 6 simbol lainnya dengan menggunakan huruf A hingga F. Sistem bilangan ini digunakan untuk menampilkan nilai alamat [[Memori (komputer)|memori]] dalam [[Pemrograman|pemrograman komputer]]. Nilai desimal yang setara dengan setiap simbol tersebut diperlihatkan pada tabel berikut:
'''Heksadesimal''' atau '''bilangan perenambelasan''' adalah sebuah [[sistem bilangan]] yang menggunakan 16 simbol. Berbeda dengan [[sistem bilangan desimal]], simbol yang digunakan dari sistem ini adalah angka 0 sampai 9, ditambah dengan 6 simbol lainnya dengan menggunakan huruf A hingga F. Sistem bilangan ini digunakan untuk menampilkan nilai alamat [[Memori (komputer)|memori]] dalam [[Pemrograman|pemrograman komputer]]. Nilai desimal yang setara dengan setiap simbol tersebut diperlihatkan pada tabel berikut:


{| border="0" cellspacing="0" cellpadding="0"  style="text-align:center;border:2px"
|- style="background:black; height:2px"
| style="background:black; width:2px" |  ||  || ||    ||  || || || || || || ||
|-style="background:#f6a07c; color:black; height:24px"
| style="background:black; width:2px" |  || style="width:45px"|'''0'''<sub>hex</sub> || = || style="width:45px"|0<sub>dec</sub> || = || style="width:45px"|0<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0  ||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''1'''<sub>hex</sub> || = || 1<sub>dec</sub> || = || 1<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''2'''<sub>hex</sub> || = || 2<sub>dec</sub> ||= ||  2<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#FDC888; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''3'''<sub>hex</sub> || = || 3<sub>dec</sub> || = || 3<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|- style="background:black; height:2px"
| style="background:black; width:2px" |  ||      ||  ||  ||  || || || || || || ||
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''4'''<sub>hex</sub> || = || 4<sub>dec</sub> ||= ||  4<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#FDC888; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''5'''<sub>hex</sub> || = || 5<sub>dec</sub> || = || 5<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|-style="background:#FEE978; color:black; height:24px"
| style="background:black; width:2px" |  ||    '''6'''<sub>hex</sub> || = || 6<sub>dec</sub> ||= ||  6<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  ||'''7'''<sub>hex</sub> || = || 7<sub>dec</sub> || = || 7<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|- style="background:black; height:2px"
| style="background:black; width:2px" |  ||      ||  ||  ||  || || || || || || ||
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  || '''8'''<sub>hex</sub> || = || 8<sub>dec</sub> || = || 10<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#FEE978; color:black; height:24px"
| style="background:black; width:2px" |  ||  '''9'''<sub>hex</sub> || = || 9<sub>dec</sub> ||= ||  11<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|-style="background:#FDC888; color:black; height:24px"
| style="background:black; width:2px" |  ||  '''A'''<sub>hex</sub>|| = || 10<sub>dec</sub> || = || 12<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  || '''B'''<sub>hex</sub>|| = || 11<sub>dec</sub> || = ||  13<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|- style="background:black; height:2px"
| style="background:black; width:2px" |  ||      ||  || ||  || || || || || || ||
|-style="background:#FDC888; color:black; height:24px"
| style="background:black; width:2px" |  ||  '''C'''<sub>hex</sub>|| = || 12<sub>dec</sub> || = || 14<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  || '''D'''<sub>hex</sub>|| = || 13<sub>dec</sub> ||= ||  15<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  || '''E'''<sub>hex</sub>|| = || 14<sub>dec</sub> ||= ||  16<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|1|| style="background:red;width:24px"|0||style="background:black; width:2px" | 
|-style="background:#E3EDE9; color:black; height:24px"
| style="background:black; width:2px" |  || '''F'''<sub>hex</sub>|| = || 15<sub>dec</sub> || = || 17<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
|- style="background:black; height:2px"
| style="background:black; width:2px" |  ||      || ||    ||  || || || || || || ||
|}


== Konversi ==
== Konversi ==
Baris 14: Baris 60:
Base16 juga dapat merujuk ke pengkodean dari biner ke teks yang termasuk dalam keluarga yang sama seperti [[Base32]], Base58, dan [[Base64]].
Base16 juga dapat merujuk ke pengkodean dari biner ke teks yang termasuk dalam keluarga yang sama seperti [[Base32]], Base58, dan [[Base64]].


== Referensi ==
== Sumber dan atribusi ==


Konten artikel ini diadaptasi dari [https://id.wikipedia.org/w/index.php?title=Heksadesimal&oldid=27383687 Wikipedia bahasa Indonesia], revisi 27383687 (2025-06-09T11:59:06Z), yang tersedia berdasarkan lisensi Creative Commons Atribusi-BerbagiSerupa (CC BY-SA). Gambar pada artikel ini bersumber dari Wikimedia Commons dan mengikuti ketentuan lisensi masing-masing berkas. Mohon gunakan konten dan media secara bijak serta sesuai dengan ketentuan lisensi yang berlaku.


 
<!-- WIKI_UNISSULA_PRESENTATION_V4 -->
== Sumber dan atribusi ==
 
Konten artikel ini diadaptasi dari [https://id.wikipedia.org/w/index.php?title=Heksadesimal&oldid=27383687 Wikipedia bahasa Indonesia], revisi 27383687 (2025-06-09T11:59:06Z), yang tersedia berdasarkan lisensi Creative Commons Atribusi-BerbagiSerupa (CC BY-SA). Mohon gunakan konten ini secara bijak serta sesuai dengan ketentuan lisensi yang berlaku.

Revisi terkini sejak 25 Agustus 2026 14.01

Numeral Systems of the World

Heksadesimal atau bilangan perenambelasan adalah sebuah sistem bilangan yang menggunakan 16 simbol. Berbeda dengan sistem bilangan desimal, simbol yang digunakan dari sistem ini adalah angka 0 sampai 9, ditambah dengan 6 simbol lainnya dengan menggunakan huruf A hingga F. Sistem bilangan ini digunakan untuk menampilkan nilai alamat memori dalam pemrograman komputer. Nilai desimal yang setara dengan setiap simbol tersebut diperlihatkan pada tabel berikut:

0hex = 0dec = 0oct 0 0 0 0
1hex = 1dec = 1oct 0 0 0 1
2hex = 2dec = 2oct 0 0 1 0
3hex = 3dec = 3oct 0 0 1 1
4hex = 4dec = 4oct 0 1 0 0
5hex = 5dec = 5oct 0 1 0 1
6hex = 6dec = 6oct 0 1 1 0
7hex = 7dec = 7oct 0 1 1 1
8hex = 8dec = 10oct 1 0 0 0
9hex = 9dec = 11oct 1 0 0 1
Ahex = 10dec = 12oct 1 0 1 0
Bhex = 11dec = 13oct 1 0 1 1
Chex = 12dec = 14oct 1 1 0 0
Dhex = 13dec = 15oct 1 1 0 1
Ehex = 14dec = 16oct 1 1 1 0
Fhex = 15dec = 17oct 1 1 1 1

Konversi

Konversi dari desimal ke heksadesimal

Sedangkan untuk mengkonversi sistem desimal ke heksadesimal caranya sebagai berikut (kita gunakan contoh sebelumnya, yaitu angka desimal 270):

 270 dibagi 16 hasil:  16   sisa 14  ( = E )
  16 dibagi 16 hasil:   1   sisa  0  ( = 0 )
   1 dibagi 16 hasil:   0   sisa  1  ( = 1 )

Dari perhitungan di atas, nilai sisa yang diperoleh (jika ditulis dari bawah ke atas) akan menghasilkan: 10E yang merupakan hasil konversi dari bilangan desimal ke heksadesimal itu.

Base16

Base16 juga dapat merujuk ke pengkodean dari biner ke teks yang termasuk dalam keluarga yang sama seperti Base32, Base58, dan Base64.

Sumber dan atribusi

Konten artikel ini diadaptasi dari Wikipedia bahasa Indonesia, revisi 27383687 (2025-06-09T11:59:06Z), yang tersedia berdasarkan lisensi Creative Commons Atribusi-BerbagiSerupa (CC BY-SA). Gambar pada artikel ini bersumber dari Wikimedia Commons dan mengikuti ketentuan lisensi masing-masing berkas. Mohon gunakan konten dan media secara bijak serta sesuai dengan ketentuan lisensi yang berlaku.