+5 votes
2k views
asked in Discrete Mathematics by (290 points)  
I was wondering on how to convert between number systems when the factor of decimal in binary and hexadecimal numbers is in play. For example,

Convert 011010.011b into a decimal number system

or

Convert 1C0DE.4Ah into a decimal number system
  

3 Answers

+4 votes
answered by (570 points)  
selected by
 
Best answer

 

I have written the procedure down, please click the link

https://imgur.com/gallery/2N4eqBb

And you can also click the links of WolframAlpha below to check the answers

011010.011 in binary to decimal

1C0DE.4A base16 to decimal

commented by (116k points)  
+1
I just edited your answer for attaching the photo you uploaded on the same page and also converted the links to a meaningful text with a link. Please do the same in the future.
+4 votes
answered by (220 points)  
edited by

The process of converting binary or hexadecimal (with fractions) to decimal is the same.

An example with binary (I'll be using 1101.001b for my example instead of 011010.011b):

Step 1) Convert the left side of the binary number to decimal:

$1101 = (1 * 2^{^{3}}) + (1 * 2^{^{2}}) + (0 * 2^{^{1}}) + (1 * 2^{^{0}}) = 13$

Step 2) The process for converting the right side of the binary number is similiar, but instead of multiplying each individual binary digit by $2^{^{n}}$, you'll be multiplying by $1/2^{^{n}}$. Note however that unlike the conversion above, you do not start with a power of 0, but instead you start with a power of 1, and the power increases the further to the right you move in decimal places.

$.001 = (0 * 1/2^{^{1}}) + (0 * 1/2^{^{2}}) + (1 * 1/2^{^{3}}) = 0.125$

Step 3) Add the left side and right side back together

13 + 0.125 = 13.125

+4 votes
answered by (230 points)  

Hey!

 for example lets take the first part:

(011010.011 b to decimal)

integer part(011010)

(0 * 20 ) + (1 * 21) + (0 * 2)+(1 * 2)+ (1* 24) +(0* 25) = 26

now the decimal part:( 011)

(1* 20) + (1* 21) + (0* 22)= 3

 hence the approximate ans is 26.3

 And when we check for the same in WolfFramAlpha  the answer is 26.375 

 

Similarly the second part:

(1C0DE.4A h to decimal)

integer part:(1CODE)

( E* 160)+ (D* 161)+(0* 162)+ (C*163)+(1*164)    { E=14  D=13  C=12  A=10)

= 114910

Decimal part :(4A)

(A*160) +( 4* 161)= 74

Hence ans is 114910.74

and on WolfFramAlpha it shows 114910.2890625

...