Converting Denary & Hexadecimal

Computer Science: OCR A Level, topic 4.1.13

Converting Denary and Hexadecimal

Both denary and hexadecimal can be used to represent the same number, so it's important to be able to convert between them.

Denary to hexadecimal

Denary to hexadecimal

  • The easiest method to convert denary numbers to hexadecimal is to first convert the denary to binary, and then use the binary to hexadecimal conversion algorithm.
Hexadecimal to denary

Hexadecimal to denary

  • To convert from hexadecimal to denary, you should:
  • Write out the powers of 16 above each hexadecimal digit.
  • For each place column, multiply the hexadecimal digit by the power of 16 above it.
  • Add together all of these results.

Test yourself on Converting Denary & Hexadecimal

  • Converting from denary to hexadecimal

  • Converting from hexadecimal to denary

Practise this topic for free