After the topic of Binary numbers we moved onto Hexadecimal numbers. On Monday we were taught Hexadecimals, now this was easy for me but it was on a more technical standpoint in comparison to binary. In addition, Hexadecimals provide a more human-friendly representation of binary-coded values when they're being compared to binary. Why I think it's more technical is due to the nibbles, bytes. From a Hexadecimal digit standpoint, Nibbles represent 4 binary digits and they contain half of the amount of bytes.
Moving onto subscripts, subscripts are numbers next to the main number of a hexadecimal. They are essentially a powered number in contrast to a subscript number from Hexadecimals.
1-15 are the range of numbers used for Hexadecimals. 16 is the highest for hexadecimals though plays another role instead. In effect, if you have a number higher than 16, you'd have to divide the number you're going to divide. If I were to divide a number and there was a decimal or remainder. I'd take the decimal(s) or a remainder and times it by 16. For example:
19 divided by 16 = 0.1875 x 16 = 3.
To explain this even further I will go over the 4 steps of converting Decimal to Hexadecimal
1) Take any decimal number and divide it by 16
2) Continue to divide the results by 16 until you reach 0
3) Every time you divide and there is a remainder, multiply this remainder by 16 and note the result. A remainder of 0, results in 0.
4) Once you’ve hit 0, go back over the numbers you’ve written down, and change numbers 10 - 15 to A - F, respectively.
In addition, I will go over the 3 steaps of converting from a decimal to a hexadecimal.
1) Take any binary number and consider how each digit is expressed as a power of 2
2) Identify which digits have a 1
3) Add up the POWER OF 2 values
We were tasked to crack the code: 0F 0E 0C 19 04 17 05 05 0B 13 15 0E 14 09 0C 08 01 0C 06 14 05 12 0D from Hexadecimal to Decimal.
15, 14, 12, 25, 4, 23, 5, 5, 11, 19, 9, 12, 6, 14, 5, 12, 13. Once that was translated, we had to translate it again from the 26 letters tables. With that being said, here's the translation for it: "Only 4 weeks until half term."
Overall, Hexadecimal, whilst more technical is roughly the same level of complexity comparing to binary.
Comments