2,701 views
5 5 votes
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
33% Accept Rate Accepted 1 answers out of 3 questions

3 Answers

Best answer
4 4 votes

 

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

selected by
4 4 votes

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

edited by
4 4 votes

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

Related questions

2 2 votes
1 1 answer
703
703 views
tofighi asked Sep 15, 2018
703 views
I have a math course at College and I am wondering if someone can show me resources I can use to improve my math skills in discrete math, especially for Number Systems?
1 1 vote
1 1 answer
2.3k
2.3k views
Math asked Sep 28, 2018
2,318 views
I am taking a math course and I am looking for solution manual of Discrete Mathematics and Its Applications by Rosen?
1 1 vote
2 answers 2 answers
1.1k
1.1k views
Mobin asked Dec 5, 2019
1,093 views
If $h(x) =4x+5$, how do i find h inverse of x?
0 0 votes
1 answers 1 answer
694
694 views
tofighi asked Jan 23, 2020
694 views
Q1) Calculate tc8 of -117, -127, 127, 0Q2) What values are stored in the following tc8 registers:100100010001000101111111000000011111111
2 2 votes
2 answers 2 answers
3.0k
3.0k views
Jashanpreet singh asked Feb 15, 2020
2,963 views
$(p → q) ∧ (q → r) → (p → r)$Without Truth Tables!