Showing posts with label binary to decimal. Show all posts
Showing posts with label binary to decimal. Show all posts

Solution: Binary to Decimal Conversion

The solution of the exercise Exercise: Binary to Decimal Conversion are the followings:

Serial  Binary Decimal
[a]  11011110 222
[b]  10011011 155
[c]  10101110 174
[d]  11000111 199
[e]  01110101 117
[f]  11111111 255
[g]  11110000 240
[h]  00011010 26
[i]  00111001 57
[j]  00000101 5
[k]  01001111 79
[l]  11100101 229
[m]  01101111 111
[n]  00011001 25
[o]  01101011 107
[p]  10010101 149
[q]  01111000 120
[r]  10000101 133
[s]  11100000 224
[t]  00100001 33
[u]  11110110 246
[v]  01111011 123
[w]  01001000 72
[x]  00000011 3
[y]  11000000 192
[z]  01000001 65

Exercise: Binary to Decimal Conversion

In the tutorial Binary to Decimal Conversion, we discussed how to convert binary number to decimal number. Later, two examples (Example 1: Convert the binary number 11110110 to decimal number and Example 2: Convert the binary number 100000101 to decimal number) are discussed.

Here, we do some exercise so that we could do this conversion easily. So, let’s do the following exercises:

Note: The answers of these exercises will be provided at the lower part of this page. We recommended to do yourself and then check whether your answers are correct form the solution sheet.

Serial  Binary Decimal
[a]  11011110  
[b]  10011011  
[c]  10101110  
[d]  11000111  
[e]  01110101  
[f]  11111111  
[g]  11110000  
[h]  00011010  
[i]  00111001  
[j]  00000101  
[k]  01001111  
[l]  11100101  
[m]  01101111  
[n]  00011001  
[o]  01101011  
[p]  10010101  
[q]  01111000  
[r]  10000101  
[s]  11100000  
[t]  00100001  
[u]  11110110  
[v]  01111011  
[w]  01001000  
[x]  00000011  
[y]  11000000  
[z]  01000001  

Solution: Binary to Decimal Conversion

Convert the binary number 10000101 to decimal number

We have the binary number 10000101. Now, we have to convert this binary number to decimal number. To do this, we will follow the tutorial Binary to Decimal Conversion to convert this binary number to decimal number.

So, firstly we have to mark those bits where binary 1 is present and then write those weighted values. And finally we have to add those weighted values to get the final decimal value of that binary number.

In our binary number 10000101, we see there are six binary 1 presents and those bits weighted values are 128, 4 and 1. At last, sum those weighted values and we get the decimal number. The detail calculations are the followings:

Binary-to-decimal-conversion-10000101

	128
4
+ 1
-------------
233


Binary number: 1000010


Decimal number: 133

Convert the binary number 11110110 to decimal number

We have the binary number 11110110. Now, we have to convert this binary number to decimal number. To do this, we will follow the tutorial Binary to Decimal Conversion to convert this binary number to decimal number.

So, firstly we have to mark those bits where binary 1 is present and then write those weighted values. And finally we have to add those weighted values to get the final decimal value of that binary number.

In our binary number 11110110, we see there are six binary 1 presents and those bits weighted values are 128, 64, 32, 16,4 and 2. At last, sum those weighted values and we get the decimal number. The detail calculations are the followings:

Binary-to-decimal-conversion-11110110

	128
64
32
16
4
+ 2
-------------
246


Binary number: 11110110


Decimal number: 246

Binary to Decimal Conversion

1We have discussed how to convert decimal to binary. In this tutorial, we learn how to convert binary to decimal. Binary to decimal conversion is easier then decimal to binary conversion. Here, we again use the cheat cheat of weighted value of binary bits. The cheat sheet of weighted values of binary bits is the following:

Weighted-Value-of-Binary-Bits

Steps to convert binary to decimal:

Step 1: Mark the bits of the binary number where binary 1 exists and pick the weighted values of those corresponding bits (where binary 1 discovers)

Step 2: Sum of those weighted values and you will get a total and that’s the decimal number of that binary number.

Examples to convert binary to decimal with Explanation: