~Maths and Logic Fundamentals (Hexadecimal to Decimal and vice versa)~
- Archie
- Jan 21, 2019
- 1 min read
Following on from learning Binary conversions, I learnt Hexadecimal conversions.
Hexadecimal numerals are widely used by computer system designers and programmers, as they provide a more human-friendly representation of Binary-coded value.
Hexadecimal has a number base of 16, Decimal has a base number of 10.
1 Hexadecimal unit is equal to 4 Binary units, following this logic we can translate 0000 0000 1111 1111 (Binary) into 00 FF (Hexadecimals).
Decimal to Hexadecimal:
Take any Decimal number and divide it by 16.
Continue to divide the result by 16 until you reach 0.
Every time you divide and there is a reminder, multiply this remainder by 16 and note the result. A remainder of 0, results in 0.
Once you've hit 0, go back over the numbers you've written down, and change numbers 10 - 15 to A - F respectively.
Hexadecimal to Decimal:
Take any Binary digits and consider how each digit is expressed as a power of 2.
Identify which digits have a 1.
Add up the power of 2 values.
My Birthday in Hexadecimal = 23/05/2002 = 17/05/7D2
My name in Hexadecimal = Archie = 1 12 3 8 9 5
Code cracker task: 0F 0E 0C 19 04 17 05 05 0B 13 15 0E 14 09 0C 08 01 0C 06 14 05 12 0D = ONLY 4 WEEKS UNTIL HALF TERM.
Comments