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 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
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 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.
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010)....
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010). 0111 1111 1001 0110 0101 1100 1100 0111
Write a program to convert the input numbers to another number system. 1. Decimal to Binary...
Write a program to convert the input numbers to another number system. 1. Decimal to Binary 2. Binary to Decimal 3. Hexadecimal to Decimal 4. Decimal to Hexadecimal 5. Binary to Hexadecimal 6. Hexadecimal to Binary The user will type in the input number as following: Binary number : up to 8 bits Hexadecimal number: up to 2 bytes Decimal number: Less than 256 As a result, print out the output after the conversion with their input numbers. The program...
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754...
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754 formats : 72.nn ( where nn is 80)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT