###### Asked in Math and ArithmeticElectronics EngineeringC ProgrammingNumbers

Math and Arithmetic

Electronics Engineering

C Programming

Numbers

# Why people are using Hexadecimal rather than binary numbers while doing programs?

## Answer

###### Wiki User

###### May 29, 2007 11:40AM

hexadecimal can express 16 bit binary in 4 place form, not 16.

## Related Questions

###### Asked in School Subjects, Math and Arithmetic, Percentages, Fractions, and Decimal Values

### What is 110 as a decimal?

The person below explains binary base well, but I think they
made a mistake of starting the base at the value of "1"; when all
the bases should start at the value of "0". So in base 2 it goes
from 0,1,2,4,8,16,32... (it doubles with every increment except
when at zero). Now see the answer below and the value of 110 should
be 3 (110 =1X2 + 1X1 + 0X0 = 3 ≠ 6.
Well, 110 IS a decimal number. However, assuming "110" is a
binary or base 2 number, then 110 = 1x4 + 1x2 + 0x1 = 6. When
stating a number not in base ten or decimal form, the base needs to
be stated. So you would say "110 binary" = "6 decimal". Binary is
usually considered a computer term as they all 'compute' using
binary numbers. However there are other related bases used for
Human convenience such as "octal, base 8", and "hexadecimal, base
16". Hexadecimal is the preferred base as it represents a more
"shorthand" method of specifying numbers compatible with computer
semantics. An example: the number 65535 decimal = 1111111111111111
which is stored as two bytes as binary 11111111, 11111111 or 16
bits. In base 16, hexadecimal, this is more easily written as
"FFFF" or more formally in programming as "0XFFFF" where the "0X"
prefix denotes hexadecimal or base 16. Since one byte = 8 bits =
256 numbers, and 4 bits = 16 numbers, one byte uses two hexadecimal
digits with a value of "00" through "FF" which is zero through 255
decimal, or 256 total numbers. As far as "base", binary is base 2
meaning only two digits are used: 0 & 1. Decimal is base 10 and
means ten digits are used, zero through nine. Hexadecimal is base
16 and means 16 digits are used. However, since we only have ten
digits in our numeric decimal system, letters are used as
additional digits and the sequence used is
0,1,2,3,4,5,6,7,8,9,A.B.C.D.E.F allowing 16 "digits" instead of the
normal 10. Always specify the base of a number if it is not decimal
so people know what the number really is.

###### Asked in Computer Terminology

### Numbering system that has just two digits 0 and 1?

Binary Bi means two 1 and 0 thers your two numbers don't forget
zero is counted ; If you put 3 binary numbers together you get
Octal (for eight) 111 the right most one is for one the middle is 2
the left is 4 so 111 = 7 highest number in octal , now move up to
what most people think of in computers is Hexadecimal 1111 or
groups of 4 binary starting from the right ,1,2,4 then 8 so 1111=
15 or F ; 10(a) thru 15(F) are represented by letters FF=255 pretty
cool !! in binary you double the number each time
1,2,4,8,16,32.64.128,256,512,1024,2048,4096 now you know why ram
comes in these sizes....... its binary baby!!

###### Asked in Math and Arithmetic

### How does ten equal two?

5 multiplied by 2 is 10
Answer:
Consider the joke: There are 10 kinds of people in the world those
who understand binary and those that don't.
Binary uses powers of 2 to express numbers. Thus 20=1,21=2, 22=4
and so on (numbers shown in decimal). This is expressed as strings
of numbers using either 0 or 1. Thus 0(binary) =0 (deciamal).
1(Binary)=1 (decimal) or 20, 10(binary)=2(decimal) or 21, 11=3
(decimal) =10+1(binary) = 21+20 and so on.

###### Asked in Math and Arithmetic, Algebra

### 3 ways people dealt with numbers in ancient times?

The Babylonians used base 60 (hexadecimal) instead of our base
10 (decimal) or base 2 (binary). The Romans used a complicated
scheme using I, V, X, C, D and M. This severely impeded their
ability to do arithmetical calculations. Arabic scholars invented
the idea and usage of zero, leading finally to what became our
modern system.

###### Asked in Computer History, Numbers

### What are base8 binary numbers?

No such animal. Binary numbers are base 2. Base 8 numbers are
called octal.
.
Confusion arose because in the early days of computers hardly
anyone was used to binary. A particular difficulty came from the
sheer length of a binary number compared to its decimal equivalent.
A number in the range 8,000,000 to -8,000,000 is easy to read, say
and understand. A 24 bit (binary) word, enough for +/- 8,000,000 is
too much for people to take in.
.
So, a 24 bit word was split into 8 groups of 3, just by spaces
in between. It was not difficult to remember that 110 was 6 or 101
was 5. The 3-bit groups were spoken in their octal equivalents,
written down like that, and easily used to enter a 24 bit word onto
a set of switches in binary. The programmer's 'cheat-sheet' for
machine code was printed like this in the octal names for 3 bit
groups.
Programmers who work in assembler (almost machine code) still
use a trick like this. However, word lengths today are not
divisible by three; great lengths of binary are split into groups
of four, which are then treated as hexadecimal.
When you see a page or more looking like: -
00 00 37 53 6F A0 39 FF 8C 00 CB DB 52 22 00 that is hex.

###### Asked in Computer Worms, Math and Arithmetic, Numbers

### How do you add and subtract the binary number system?

You do it exactly like decimal subtraction, and when needed you
borrow from the next higher place digit, however remember you
borrow 2 everytime and not 10. Some people convert the two binary
numbers into decimal, do the subtraction and then convert the
result back to binary. Following is an example of binary
subtraction.
1001
0110
____
0011
____
I started explaining the borrowing process in words but it gets
confusing. Please relate it to the borrowing process in
decimal.

###### Asked in Math and Arithmetic

### Why do people use decimal instead of binary?

We have ten fingers (including thumbs) and early counting is
based on one-to-one mapping onto these digits. So one reason is
simple familiarity.
The other advantage of counting in decimals is that fewer digits
are required: 4 decimal digits takes you to over a thousand, you
would need 10 binary digits to go over 1024. It gets worse with
larger numbers: 7 decimal digits to go over a million but 20 binary
digit.
I have phones with 11 digit numbers (without the international
country code). In binary, that would be a 33-digit number. No
thanks!

###### Asked in Computer Programming

### Why do computer designers use the binary code to represent information?

Computer designers use binary format to represent information.
When we speak of code, we are usually talking about the
instructions in the programs themselves.
In an electronic computer, information has to be stored
electronically. This is done by using transistor switches that can
be thrown electronically to a desired position, on or off, and read
later. Each piece of information stored this way is a binary digit,
and the values that can be assigned to it are 0 or 1, represented
by the switch being off or on. This binary digit is called a
bit.
The digits can be combined into binary values of any length, but
the commonly used length is eight bits, which is a byte. When
information is stored in computer memory, it is usually in bytes or
groups of bytes, with the individual bytes having address that can
be accessed by numerical value.
The bits are usually represented using hexadecimal format, which
is easily translated from binary and much easier for most human
beings to handle. The numerals for this are 0 through 9 plus A
through F, making 16 values. For people accustomed to decimal, this
seems very cumbersome. But trying to work with computers in decimal
at the level of the instructions themselves is sufficiently
difficult that most experienced people don't try.