For faster navigation, this Iframe is preloading the Wikiwand page for Heksadesimal.

Heksadesimal

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: "Heksadesimal" – berita · surat kabar · buku · cendekiawan · JSTOR

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

hex|| = || 14dec ||= || 16oct ||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:white;width:24px"|0||style="background:black; width:2px" |

Fhex = 15dec = 17oct 1 1 1 1

Konversi dari desimal ke heksadesimal

[sunting | sunting sumber]

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 juga dapat merujuk ke pengkodean dari biner ke teks yang termasuk dalam keluarga yang sama seperti Base32, Base58, dan Base64.

Referensi

[sunting | sunting sumber]
{{bottomLinkPreText}} {{bottomLinkText}}
Heksadesimal
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?