Conversion of decimal to any number system of any base is a generalized method.
Let’s directly move on to conversions.
Decimal to binary
All we have to do is just divide the number by 2 and write the remainder in adjacent column. Then, write all the remainder from bottom to top. That’s it, it is the answer. Isn’t that simple?
(35)10 = (?)2
Image may be NSFW.
Clik here to view.
(35)10=(100011)2
 The procedure followed above remains the same for conversions to any base number system instead divide it with base of that number system.
Decimal to octal & hexadecimal
(35)10 = (?)8
Image may be NSFW.
Clik here to view.
 (35)10=(43)8
 Â
(35)10 = (?)16
Image may be NSFW.
Clik here to view.
 (35)10=(23)16
Â
What if given number has fractional part? Just separate integer and fractional part, convert them separately and add them. E.g. – (35.35)10 to (?)16.
We have already found out conversion for integer part. Now we will find conversion for fractional part. It is quite different from integer part conversion.
Multiply the fractional part with the base (16 in our case). Separate out the integer part and again multiply only the fractional part with base. Continue the process until you get only integer or as many significant values you want.
Write the separated integers from top to bottom.
NOTE: The answer obtained for fractional part will be written after point (.) in system to which it is converted.
(0.35)10
Image may be NSFW.
Clik here to view.
(0.35)10 = (0.599)16
Â
So, our final answer is (35.35)10 = (23.599)16.
Like I said before, the process of converting from decimal to number system of any base is a generalized process.
If you find anything confusing, don’t hesitate to ask me through comments or mail.
Source link
The post Decimal to binary,octal and hexadecimal conversion appeared first on Speak Electronics.