Aşağıdaki arka plan yazısı henüz çevrilmedi ve İngilizce gösteriliyor.
onaltılık sayılar hakkında
Base 16 is the youngest of the bases in daily use, and it exists because of a hardware decision. Grouping bits in fours lets one written digit stand for exactly four of them, so a byte is two digits and a 16-bit word is four, with no digit ever straddling a byte boundary. Octal did the same job on machines whose word sizes were multiples of three — the PDP-8's 12-bit words, the 36-bit IBM 7090 — and lost ground as the 8-bit byte became standard. Unix file permissions, still written 644 and 755, are an octal survival.
Base 16 had at least one advocate before computers existed. John W. Nystrom, a Swedish-American engineer, published a complete hexadecimal scheme in 1862 as the Tonal System, with invented names for the digits and matching proposals for hexadecimal weights, measures and coinage. It went nowhere.
Early machines disagreed about what to write for the six digits above 9; the Bendix G-15 of 1956 used the lowercase letters u, v, w, x, y and z. The name wobbled as well. "Hexadecimal" is a macaronic word, welding the Greek hexa- for six onto a Latinate -decimal; the consistently Latin "sexadecimal" is the older form, and was still turning up in Bendix documentation in the 1950s. The A-to-F convention everyone inherited established itself as the de facto standard from 1966, in the wake of the Fortran IV manual for the IBM System/360.
Notation itself never converged. C writes 0x1F, and C++, Java, Python, JavaScript, Go and Rust all followed; Motorola assemblers and the Pascal family write $1F; Intel-style assemblers append an h, as in 1Fh; the web writes colours as #1F1F1F. Four bits got a name of their own along the way — a nibble, sometimes spelled nybble, half a byte and exactly one hexadecimal digit.
Temel özellikler
- One hexadecimal digit is exactly four bits, so two digits cover one 8-bit byte: 00 to FF is 0 to 255.
- Converting between hexadecimal and binary is digit-by-digit substitution, with no carrying across digits.
- FFFF is 65,535 and FFFFFFFF is 4,294,967,295 — the largest unsigned 16-bit and 32-bit values.
- An n-bit value needs ceil(n/4) hexadecimal digits, which is why a 24-bit colour is written as six.
- A number is divisible by 15 exactly when its hexadecimal digits sum to a multiple of 15 — casting out nines, rebased.
- 1/d in lowest terms terminates in hexadecimal only when d is a power of two, so 1/3 and 1/5 both recur.
- 2^53 - 1, the largest integer a JavaScript number holds exactly, is 1FFFFFFFFFFFFF in hexadecimal.
- DEADBEEF, the long-standing debugging marker, is the decimal number 3,735,928,559.
Nerede karşımıza çıkar
- CSS and HTML colours: #FF8000 is one byte each of red, green and blue.
- MAC addresses are 48 bits written as six hex pairs; IPv6 addresses are 128 bits written as eight groups of four hex digits.
- Unicode code points are written as U+ followed by hexadecimal, as in U+1F600.
- File-format magic numbers: a Java class file opens with the four bytes CAFEBABE, and a PNG opens with byte 89 followed by the letters P, N and G.
- Git names commits by their SHA-1 hash printed as 40 hexadecimal digits, usually abbreviated to the first seven.
Bu üreteç nasıl kullanılır
Üretilen değerler en üstte, yanında bir kopyalama düğmesiyle görünür. Bunları görsele çevirmek için Görsel oluştur altındaki stillerden bir görünüm seçin, bir dışa aktarma boyutu belirleyin ve PNG, JPEG ya da WebP olarak indirin. Her şey tarayıcınızda işlenir, dolayısıyla ürettiğiniz hiçbir şey sunucuya gönderilmez.
Siz çalışırken adres çubuğu güncellenir, böylece bağlantı her zaman tam olarak gördüğünüzü yeniden üretir — belirli bir diziyi paylaşmak ya da bir yapılandırmayı sonrası için saklamak isterseniz işe yarar. Değerleri düz metin olarak almak için Kopyala, CSV, JSON, NDJSON, SQL veya XML için Veriyi dışa aktar kullanın.
Kaynaklar
- Hexadecimal — Wikipedia — CC BY-SA 4.0
- Nibble — Wikipedia — CC BY-SA 4.0
- IBM System/360 — Wikipedia — CC BY-SA 4.0
- Web colors — Wikipedia — CC BY-SA 4.0
Bu sayfadaki tarihsel özetler yukarıda listelenen açık lisanslı kaynaklara dayanır. Bir hata mı gördünüz? Bize yazın, düzeltelim.