Why is hexadecimal useful in computing?

Why hexadecimal notation is preferred to octal in computing?

  • Answer:

    Because hex "converts" without effort to binary, while octal does not! 0x3B = "3" + "B" = "0011" + "1011" => 00111011 bin. A 2 digits hex code is equivalent to one "byte" of 8 bits A 4 digits converts straight to a word of 16 bits. It is also a question of history: Unix used to have words of 3 bits, hence "octal", but hardware has changed a bit since! :-)

Maha at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

JR answered your question here: "A 2 digits hex code is equivalent to one "byte" of 8 bits" So it's more convenient for representing the data sizes that most computers use. But his first sentence is wrong. Octal converts to binary just as effortlessly as hex, it's just 3 bits at a time instead of 4. e.g. the octal value 7531 is in binary 111 101 011 001

oops

The standard computer word sizes are powers of 2 - 8, 16, 32, 64 bits. A hexadecimal value is a multiple of 4 bits, so it fits neatly into computer words. An octal value is a multiple of 3 bits thus does not neatly fit into computer words. Special routines are needed to handle octal values that are greater than the computer word size.

Growl

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.