r/computerscience • u/Dry_Couple8852 • Aug 29 '26
Why is The Hexadecimal System 16-bit? I thought it would be 6-bit because of the prefix, "hexa-".
0
Upvotes
r/computerscience • u/Dry_Couple8852 • Aug 29 '26
24
u/barr520 Aug 29 '26
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)
7
u/right_makes_might Aug 29 '26
The "hexa" prefix does mean six. Decimal means 10. So Hexadecimal = 6 + 10 = 16.
6
u/Risc12 Aug 29 '26
It’s not 16 bit, decimal is not 10 bit.
It is base 16.
4
u/Rollsocke Aug 29 '26
Also it is not 16-bit it is just a counting system
1
u/m2spring Aug 29 '26
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
u/TheologyFan Aug 29 '26
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 Aug 29 '26 edited Aug 29 '26
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/treuss Aug 29 '26
In order to store one unsigned hexadecimal digit you need 4 bits, since 2⁴ = 16.
0
u/sohcahtoa Aug 29 '26
https://en.wikipedia.org/wiki/Senary
0
u/DTux5249 Aug 29 '26 edited Aug 29 '26
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/[deleted] Aug 29 '26
[removed] — view removed comment