Professional Documents
Culture Documents
01110010
In the following example, we take the word hope, and show how it is converted into binary that
the computer understands.
Let's take the first character h and break down the process. Once the letter h (in lowercase) is
typed on the keyboard, a signal to the computer as input. The computer knows the ASCII
standard value for h is 104, which can be converted by the computer into the binary value
01101000. After the h is converted to binary, the computer can store and process the data as ones
and zeros.
When storing this data, each character takes 8 bits (1 byte), which means to store hope as
plaintext it would take 4 bytes or 32-bits.
Answer: Bits and Bytes both measure amounts of data. However, they are typically used in two
different contexts.
Bits, kilobits (Kbps), and megabits (Mbps) are most often used to measure data transfer speeds.
This may refer to how fast you are downloading a file, or how fast your Internet connection is.
For example, if you are downloading a file on cable modem, your download speed might be
240Kbps. This is much faster than a dial-up modem, which maxes out at 56Kbps.
Bytes, on the other hand, are used to measure data storage. For example, a CD holds 700MB
(megabytes) of data and a hard drive may hold 250GB (gigabytes). The other important
difference is that bytes contain eight bits of data. Therefore, a 240Kbps download is only
transferring 30KB of data per second. However, kilobytes per second is not as commonly used as
kilobits per second for measuring data transfer speeds. After all, using kilobits per second (Kbps)
makes your connection sound eight times faster!
It is important to know that bytes are abbreviated with a capital B, where as bits use a lowercase
b. Therefore, Mbps is megabits per second, and MBps is megabytes per second. So 8Mbps is
equal to 1MBps.
The decimal, also known as the denary or base 10 numbering system is what we use in everyday
life for counting. The fact that there are ten symbols is more than likely because we have 10
fingers.
We use ten different symbols or numerals to represent the numbers from zero to nine.
When we get to the number ten, we have no numeral to represent this value, so it is written as:
10
The idea is to use a new place holder for each power of 10 to make up any number we want.
So 134 means one hundred, 3 tens and a 4 although we just interpret and read it as one hundred
and thirty four.
Binary only uses two numerals 0 and 1. Place holders in binary each have a value of powers of 2.
So the first place has a value 20 = 1, the second place 21 = 2, the third place 22 = 4, the fourth
place 23 = 8 and so on.
In binary we count 0, 1 and then since there's no numeral for two we move onto the next place
holder so two is written as 10 binary. This is exactly the same as when we get to ten decimal and
have to write it as 10 because there's no numeral for ten.
00000000 0
00000001 1
00000010 2
00000011 3
00000100 4
00000101 5
00000110 6
00000111 7 and so on
In the decimal system each decimal place is a power of ten. For example:
Using Grouping
Since, there are only 8 digits (from 0 to 7) in octal number system, so we can represent any digit
of octal number system using only 3 bit as following below.
So, if you make each group of 3 bit of binary input number, then replace each group of binary
number from its equivalent octal digits. That will be octal number of given number number. Note
that you can add any number of 0’s in leftmost bit (or in most significant bit) for integer part and
add any number of 0’s in rightmost bit (or in least significant bit) for fraction part for completing
the group of 3 bit, this does not change value of input binary number.
So, these are following steps to convert a binary number into octal number.
Example-1 − Convert binary number 1010111100 into octal number. Since there is no binary
point here and no fractional part. So,
= (1010111100)2
= (001 010 111 100)2
= (1 2 7 4)8
= (1274)8
Simply continue with A...B...C...D...E...F which represents 10, 11, 12, 13, 14 and 15 decimal.
In the decimal system, we saw that when we got to nine, there was no numeral for ten so it was
represented as 10 or "one ten and no units".
In the hex system when we get to F which is 15 decimal, we have to represent the next number
sixteen as 10 or "one 16 and no units".
Steps to Convert Hex to Binary
Hex is very easy to convert to binary.
1. Write down the hex number and represent each hex digit by its binary equivalent number
from the table above.
2. Use 4 digits and add insignificant leading zeros if the binary number has less than 4
digits. E.g. Write 102 (2 decimal) as 00102.
3. Then concatenate or string all the digits together.
4. Discard any leading zeros at the left of the binary number.
Converting hex to binary | Source
1. Start from the least significant bit (LSB) at the right of the binary number and divide it up
into groups of 4 digits. (4 digital bits is called a "nibble").
2. Convert each group of 4 binary digits to its equivalent hex value (see table above).
3. Concatenate the results together, giving the total hex number.
What Other Bases Are There Apart From 2 and 10?
Base 16 or hexadecimal (hex for short) is a shorthand used when programming computer
systems. It uses sixteen symbols, representing 10, 11, 12, 13, 14 and 15 decimal with the letters
A, B, C, D, E, and F respectively. You can read more about converting hex to binary and binary
to hex here: