![]() We multiply 0.64 by 2 and take the integer part We multiply 0.32 by 2 and take the integer part We multiply 0.16 by 2 and take the integer part Now, we will convert the fractional part 0.16 into binary. So, 10 (base 10) = 1010 (base 2) Alternatively, (10) 10 = (1010) 2 Where, (base 10) means the number is in decimal number system and (base 2) means the number is in binary number system. To find the binary we have to scan the remainder from bottom. 1st remainder = 0 2nd remainder = 1 3rd remainder = 0 4th remainder = 1 The calculated remainder are as followed. Step 1ĭividing 10 by 2 we will get 0 as remainder.ĭividing 5 by 2 we will get 1 as remainder.ĭividing 2 by 2 we will get 0 as remainder.Īs, dividend is less than 2 so, we will stop here and copy the dividend as the last remainder. Convert decimal number 10.16 into binary formįirst we convert the integer part 10 into binary. To find the binary we have to scan the integer part from top So, 0.125 (base 10) = 0.001 (base 2) Alternatively, (0.125) 10 = (0.001) 2 Where, (base 10) means the number is in decimal number system and (base 2) means the number is in binary number system. The calculated integer part are as followed. Now the fractional part is 0 so, we stop here. We multiply 0.500 by 2 and take the integer part We multiply 0.250 by 2 and take the integer part We multiply 0.125 by 2 and take the integer partĪs, fractional part is not equal to 0 so we copy it to next step. Integer part is 0 which is less than 2 so, 0 (base 10) = 0 (base 2) Binary of 0.125 ![]() Convert decimal number 0.125 into binary formįirst we convert the integer part 0 into binary and then the fractional part. In some cases the fractional part will not become 0 so, for those scenarios we will stop after N digits, where N will be sufficiently large or given in the question. We perform this process till the fractional part becomes 0. To get the binary of the fractional part we have to multiple the fractional part by 2 and take the integer part before the decimal point as result and multiple the remaining fractional part by 2 again. Finally combine the two to get the result. Then covert the fractional part into binary form. So, to convert a floating point decimal number into binary form we have to first convert the integer part into binary form. The integer part of this number is 10 and the fractional part of the number is 0.16 and together they make up the number. For example, 10.16 is a floating point decimal number. An integer part which is to the left of the decimal point and a fractional part which is to the right of the decimal point. ![]() How to convert a decimal number having fractional part into Binary?Ī floating point decimal number consists of two parts. ![]() And it is most commmonly used in computers. So, any number that we use in our daily life is actually in decimal number system.Ī binary number system consists of only 2 digits: 0 and 1. In this tutorial we will learn to convert a decimal number which has fractional part into binary number.īefore we dive into the main topic lets talk a little about Decimal and Binary Number System that we are going to work with in this tutorial.Ī decimal number system consists of 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |