Question

In: Computer Science

Give the binary equivalent of the decimal number of 19.9 (assume fixed point, no more than...

Give the binary equivalent of the decimal number of 19.9 (assume fixed point, no more than 6 bits left and right of the decimal point(show work)

Solutions

Expert Solution

10011.111001

Explanation:
-------------
Converting 19.9 to binary
Convert decimal part first, then the fractional part
> First convert 19 to binary
Divide 19 successively by 2 until the quotient is 0
   > 19/2 = 9, remainder is 1
   > 9/2 = 4, remainder is 1
   > 4/2 = 2, remainder is 0
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 10011
So, 19 of decimal is 10011 in binary
> Now, Convert 0.90000000 to binary
   > Multiply 0.90000000 with 2. Since 1.80000000 is >= 1. then add 1 to result
   > Multiply 0.80000000 with 2. Since 1.60000000 is >= 1. then add 1 to result
   > Multiply 0.60000000 with 2. Since 1.20000000 is >= 1. then add 1 to result
   > Multiply 0.20000000 with 2. Since 0.40000000 is < 1. then add 0 to result
   > Multiply 0.40000000 with 2. Since 0.80000000 is < 1. then add 0 to result
   > Multiply 0.80000000 with 2. Since 1.60000000 is >= 1. then add 1 to result
0.9 of decimal is .111001 in binary
so, 19.9 in binary is 10011.111001
Answer: 10011.111001

Related Solutions

Give the binary equivalent of the decimal number of 11.77 (assume fixed point, no more than...
Give the binary equivalent of the decimal number of 11.77 (assume fixed point, no more than 6 bits left and right of the decimal point)
1. Give the binary equivalent of the decimal number of 11.77 (assume fixed point, no more...
1. Give the binary equivalent of the decimal number of 11.77 (assume fixed point, no more than 6 bits left and right of the decimal point)
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754...
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754 standard is
Write an application that prints a table of the binary and octal equivalent of the decimal...
Write an application that prints a table of the binary and octal equivalent of the decimal numbers in the range 1 through 256. **Write in JAVA**
Convert the decimal number, 315.56 into binary form?
Convert the decimal number, 315.56 into binary form?
represent the decimal number 101 and 6 as floating point binary numbers please show your work...
represent the decimal number 101 and 6 as floating point binary numbers please show your work and explained, I have a test.
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give...
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give your answer in hexadecimal and show your work. b) Represent the decimal value 47.375 as a double precision IEEE floating point number. Give your answer in hexadecimal and show your work.
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.
1.Write a Java program that inputs a binary number and displays the same number in decimal....
1.Write a Java program that inputs a binary number and displays the same number in decimal. 2.Write Java program that inputs a decimal number and displays the same number in binary.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT