Advertisements
Advertisements
Question
Write the procedure to convert fractional Decimal to Binary.
Short/Brief Note
Advertisements
Solution
Procedure to convert fractional Decimal to Binary.
- Step 1: Multiply the decimal fraction by 2 and note the integer part. The integer part is either O or 1.
- Step 2: Discard the integer part of the previous product. Multiply the fractional part of the previous product by 2. Repeat step 1 until the same fraction repeats or terminates (0).
- Step 3: The resulting integer part forms a sequence of 0’s and 1 ’s that becomes the binary equivalent of decimal fractions.
- Step 4: The final answer is to be written from the first integer part obtained till the last integer part obtained.
shaalaa.com
Is there an error in this question or solution?
