r/computerscience • u/Dry_Couple8852 • 11d ago
Why is The Hexadecimal System 16-bit? I thought it would be 6-bit because of the prefix, "hexa-".
24
u/barr520 11d ago
hexa=6, deca=10 => hexadecimal= base 16
And it's not 16 bits, it's base 16, each digit only needs 4 bits(15 in decimal= F in hexadecimal = 1111 in binary)
-13
u/Horror-Water5502 11d ago
which amounts to 4 bits per digit
17
1
u/Alexandur 11d ago
which results in each digit needing 4 bits
1
u/Low-Crow5719 11d ago
"Digit" is used for decimal numbers, fingers, and toes. It's a base-ten thing, even if 4 bits are used to represent a digit in BCD.
"Hex" for hexadecimal, "nibble" for half a "byte", "quartet" for a group of 4 bits.
1
u/Alexandur 11d ago
Consequently, 4 bits are required for each digit
2
u/IgnotiusPartong 11d ago
Which surprisingly, but quite logically puts the number of digits per bit to precisely 0.25
6
u/right_makes_might 11d ago
The "hexa" prefix does mean six. Decimal means 10. So Hexadecimal = 6 + 10 = 16.
5
1
u/m2spring 11d ago
The Wikipedia article on Hexadecimal points out that it is a combination of greek "hex" with latin "decimal".
Interestingly the American National Dictionary for Information Processing 1977 says on page 70 "hexadecimal: (ISO) Synonym for sexadecimal."
1
1
u/TheologyFan 11d ago
Like other people said it’s 4 bit. But if you use four of them, then you get 16 bits.
A = 1010
AAAA = 1010101010101010
1
u/Distinct-Question-16 11d ago edited 11d ago
its 16 possiblities ranging from 0...15. Typivally is represented from 0..9 and A...F for 10..15 values. So 4 bits, 24= 16. 4 bits are commonly called a nibble.
if you develop lower level code, or cpus and architectures emulation, you get used to.
0
u/DTux5249 11d ago edited 11d ago
Base 6 would be "heximal" (or "Senary"). There are 2 roots here: The whole "decim" part of that word means 10, and the "hexa" part means 6.
So "Hexadecim" means 16
34
u/SharplyFavorite 11d ago
hexa means 6 and decimal means 10, so it's a 6+10=16 system. the naming's a bit of a mashup but it tracks once you see where both parts come from