Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
garrettw2699yDecimal = 10 possible values (0-9) for each digit. ("Dec" = 10)
Hexadecimal = 16 possible values per digit (0123456789abcdef) so f is equal to 15 in decimal.
A byte can be represented by two hex numerals, since each hex numeral represents 4 bits.
Shall I go on, or is that sufficient? -
To add on to what @garrettw is saying, hexadecimal is a base16 number system, because it consists of 16 possible digits (0123456789abcdef). Same with binary how that is a base2 number system because it consists of just 2 digits (0 and 1)
-
vince879yI think this is a simple way of imagining different numerical systems:
Imagine that each place is a box.
For example a decimal place goes:
0 - 1 - 2 - 4 - 5 - 6 - 7 - 8 - 9
Adding one more to that completes the box and it is now 10.
Now let's talk hexadecimal.
0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - a - b - c -d - e - f
Adding one more to that completes the box and it is now 10.
So a full "box" in decimal equals ten.
A full "box" in hexadecimal equals sixteen. -
vince879yContinuing on:
This scales for every place.
The next place in decimal needs ten full "boxes" and equals 10 x 10 or one hundred.
The next place in hexadecimal needs 16 full "boxes" and equals in decimal 16 x 16 = 256. But if we WROTE it in hexadecimal 10 x 10 = 100. -
vince879yHere is an example of counting up in Binary:
https://upload.wikimedia.org/wikipe...
The same thing applies to hexadecimal:
http://datateca.unad.edu.co/conteni...
This gif shows how to count up in decimal, binary, octal, and hexadecimal at the same time. -
TYML17569ySorry...I was making a joke. I understand it very well, but a lot of people ask me. But Thank you so much for answering! 😎
Can you explain hexadecimal to me?!? #storyofmylife 😁
undefined