Write the procedure to convert fractional Decimal to Binary
Answers
Answered by
12
Given the fraction decimal number is n and the integral is k we will convert the decimal number n into the equivalent binary number up to k precision after decimal point.
The first step is to divide the decimal number by 2 and store the reminders in an array.
Dividing the quotient by 2 is the next step.
Repeat the previous step where you divide the quotient by 2 until and unless you get to the quotient where it equals to zero.
Equivalent binary number would then become reverse to all the remainders of the step 1.
The first step is to divide the decimal number by 2 and store the reminders in an array.
Dividing the quotient by 2 is the next step.
Repeat the previous step where you divide the quotient by 2 until and unless you get to the quotient where it equals to zero.
Equivalent binary number would then become reverse to all the remainders of the step 1.
Similar questions
Math,
7 months ago
Math,
7 months ago
English,
7 months ago
English,
1 year ago
Social Sciences,
1 year ago