Question

In: Computer Science

convert fraction decimal number 14/13 to acorrectly rounded binary number with 8 digits.

convert fraction decimal number 14/13 to acorrectly rounded binary number with 8 digits.

Solutions

Expert Solution

Convert decimal to binary using division method

1. Division method is used to convert only integer part of a decimal number to its equivalent in binary number system.

2. In this method the integer part of the decimal number is continuously divided until we reach a stage where the quotient becomes zero.

3. The reminder that we obtain at each division iteration becomes the value of the weights or the digits in the binary number system.

4. The reminders that we obtain are taken from the last step to first step i.e. the last reminder obtained during the division iteration is the most significant digit (MSD) and the first reminder the we obtained is the least significant digit in the binary number system.

5. You will understand the procedure better with the following illustrative example.

Step1:

Convert (14)10 decimal number to binary number (?)2 using division method

1st Division Iteration

Divide 14 by 2

14 ÷ 2 = 7(Quotient)                     Reminder:0

2nd Division Iteration

Divide 7 by 2

     7 ÷ 2 = 3(Quotient)             Reminder=1


3rd Division Iteration

Divide 3 by 2

     3 ÷ 2 = 1(Quotient)              Reminder=1

Hence, the binary equivalent of the decimal number 14 is (110).

Step2:

Convert (13)10 decimal number to binary number (?)2 using division method

1st Division Iteration

Divide 13 by 2

     13 ÷ 2 = 6(Quotient)             Reminder=1

2nd Division Iteration

Divide 6 by 2

     6 ÷ 2 = 3(Quotient)             Reminder=0

6th Division Iteration

Divide 3 by 2

     3 ÷ 2 = 1(Quotient)             Reminder=1
  

Remainder from the last division iteration becomes MSD and reminder from 1st iteration becomes LSD.

Hence, the binary equivalent of the decimal number 13 is (101).

Step3:

Binary Division



Related Solutions

I have a decimal fraction: 76.234567x10^-14 I need to convert this number to binary. I know...
I have a decimal fraction: 76.234567x10^-14 I need to convert this number to binary. I know you can multiply the number by 2 constantly to get the binary number, but that will take forever to do, even converting it to hex with x16 takes a long time, is there any easier way to convert this? Show all steps and work please.
i need to convert decimal to twos complement binary and then add the binary digits but...
i need to convert decimal to twos complement binary and then add the binary digits but I am unable to do it. I am only allowed to use string, can anyone help me out please. i need the code urgently. #include #include #include #include using namespace std; string reverse(string s) { string x = ""; for (long i = s.length() - 1; i >= 0; i--) { x += s[i]; } return x; } string twosComplementStringsAddition(string A, string B) {...
Convert the decimal number, 315.56 into binary form?
Convert the decimal number, 315.56 into binary form?
Problem: Convert the following binary number to decimal. 1. 110101.101 Problem: Convert the following decimal number...
Problem: Convert the following binary number to decimal. 1. 110101.101 Problem: Convert the following decimal number to fractional binary representation. 1. 103.5625
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b....
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b. 1001 c. 101010 d.1101101 convert the number to the other base a. 253 base 10 to base 8 b. 98 base 10 to base 3 C. 1340 base 10 to base 16 D. AB Base 16 to base 8 E. 111010 base 2 to base 16 F. 1010101 base 2 to base 6 g. 69 base 10 to base 2 h . 1023 base...
Code in C-language programming description about convert binary number to decimal number.
Code in C-language programming description about convert binary number to decimal number.
Convert the following decimal number to eight (8) binary bits: 21, 200, 105, 144, 183, 199,...
Convert the following decimal number to eight (8) binary bits: 21, 200, 105, 144, 183, 199, 88, 100, 19, 204
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate...
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers. Then perform the binary equivalent of (+31)+(-47), (-31)+(+47), and (-31)+(-47). Convert the answers back to decimal and verify that they are correct.
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to...
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers, Then, perform the binary equivalent of (+47)+(-38) and (-47)+(-38) using addition. Convert the answers back to decimal and verify that they are correct.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT