Jump to content

"writtin in hex code"?


PopLockingRoach

Recommended Posts

Hex code is fairly simple. You can use online converters or programs to do it the easy way, but if you want to actually understand it....

We count from 0 to 9. When we get past that we add 1 onto the digit before it. so 08 09 10, then that keeps going to 98 99 100. This is the decimal system, because there are ten numbers (0-9).

Hexadecimal has 16 numbers instead of 10, so counts all the way up from 0 to 15 before adding a 1. But since we don't have a number to represent 10-15 we use the letters A-F.

00 01 02 03...08 09 0A 0B 0C 0D 0E 0F 11 12 13...18 19 1A 1B...1E 1F 20 21..98 99 9A..9E 9F A0 A1..FE FF 100

So Hex 10 is actually 16 in decimal. Hex 50 is Dec 80. Hex A0 is 160, like 16-ty (ninety, tenty, eleventy etc), AA is 170. F0 is 150 (fifteen-ty) and FF is 255. Dec 256 is Hex 100.

You can work out decimal by starting with units on the right, then lots of ten, then lots of a hundred. so 436 is 6 units, 3 tens and 4 hundreds.

To convert hex to decimal, the first digit on the right is units, then lots of 16, then lots of 256. So 436 is 6 units, 3 sixteens and 4 256s = 1078

Hex is used because its a shorter way of saying large numbers. FF is shorter than saying 255, but they add up to the same. Using two decimal digits, you can get a range of 100 numbers (00-99), but using two hex digits you can get a range of 256 numbers (00-FF). You should also notice that 256 is a nice round number because you can double "1" 128 times to get to it, so its a number that's easily found in binary, decimal and hex.

To convert hex to decimal, you can use the calculator built into windows. Go to "view" and choose "scientific". Click the hex button on the top right to type in some hex, then when you click Dec it will change it to decimal, and vice versa.

Link to comment
Share on other sites

Hex code is fairly simple. You can use online converters or programs to do it the easy way, but if you want to actually understand it....

We count from 0 to 9. When we get past that we add 1 onto the digit before it. so 08 09 10, then that keeps going to 98 99 100. This is the decimal system, because there are ten numbers (0-9).

Hexadecimal has 16 numbers instead of 10, so counts all the way up from 0 to 15 before adding a 1. But since we don't have a number to represent 10-15 we use the letters A-F.

00 01 02 03...08 09 0A 0B 0C 0D 0E 0F 11 12 13...18 19 1A 1B...1E 1F 20 21..98 99 9A..9E 9F A0 A1..FE FF 100

So Hex 10 is actually 16 in decimal. Hex 50 is Dec 80. Hex A0 is 160, like 16-ty (ninety, tenty, eleventy etc), AA is 170. F0 is 150 (fifteen-ty) and FF is 255. Dec 256 is Hex 100.

You can work out decimal by starting with units on the right, then lots of ten, then lots of a hundred. so 436 is 6 units, 3 tens and 4 hundreds.

To convert hex to decimal, the first digit on the right is units, then lots of 16, then lots of 256. So 436 is 6 units, 3 sixteens and 4 256s = 1078

Hex is used because its a shorter way of saying large numbers. FF is shorter than saying 255, but they add up to the same. Using two decimal digits, you can

get a range of 100 numbers (00-99), but using two hex digits you can get a range of 256 numbers (00-FF). You should also notice that 256 is a nice round number because you can double "1" 128 times to get to it, so its a number that's easily found in binary, decimal and hex.

To convert hex to decimal, you can use the calculator built into windows. Go to "view" and choose "scientific". Click the hex button on the top right to type in some hex, then when you click Dec it will change it to decimal, and vice versa.

Yeah, what he said... Srysly, wtf?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...