Question

In: Computer Science

Convert 290.2 to binary

Convert 290.2 to binary

Solutions

Expert Solution

Since not provided, I am assuming that 290.2 is a decimal (base-10) number.
I am going to convert this to binary with 12 decimal points..

Converting 290.2 to binary
Convert decimal part first, then the fractional part
> First convert 290 to binary
Divide 290 successively by 2 until the quotient is 0
   > 290/2 = 145, remainder is 0
   > 145/2 = 72, remainder is 1
   > 72/2 = 36, remainder is 0
   > 36/2 = 18, remainder is 0
   > 18/2 = 9, remainder is 0
   > 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 100100010
So, 290 of decimal is 100100010 in binary
> Now, Convert 0.20000000 to binary
   > 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
   > 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
   > 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
   > Multiply 0.60000000 with 2. Since 1.20000000 is >= 1. then add 1 to result
   > This is equal to 1, so, stop calculating
0.19999999999998863 of decimal is .001100110011 in binary
so, 290.2 in binary is 10010001.001100110011
Answer: 10010001.001100110011

Related Solutions

How to convert binary to hex?
How to convert binary to hex?
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal....
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal. There are ____________ kilobytes in a megabyte. Convert -13210 to a 16-bit 2’s complement in binary ____________ and hexadecimal ______________.
Convert the decimal number, 315.56 into binary form?
Convert the decimal number, 315.56 into binary form?
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 following values into binary numbers for each word and place the binary values in...
Convert the following values into binary numbers for each word and place the binary values in the two-dimensional array in their proper order of words. Value Binary Number Equivalent Word 0 462,91210 Word 1 1142008 Word 2 5420h Word 3 20,992d Word 4 1104208 Word 5 6102008 Word 6 9F88h Word 7 20,49610 Word 8 502416 Word 9 1101018 Word 10 71082h
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal representation. • Convert 01100000101110000001010111111000 the binary representation to a hexadecimal representation. • Convert 0xBAAADA55 hexadecimal representation, to a binary representation. 2. (8 pts) Complete the following arithmetic operations in two’s complement representation. What are the values of the carry flag and the overflow flag? (Assume a six-bit system) • 31 + 11 • 13 – 15 • (-2) x (-16) • (-15) ÷ 5
Convert these numbers from Decimal to Binary 111: 66: 252 11 20 Convert these numbers from...
Convert these numbers from Decimal to Binary 111: 66: 252 11 20 Convert these numbers from Binary to Decimal 00110110 11111000 00000111 10101010 What is the Default Subnet mask of Class A IPV4 What is the Default Subnet mask of Class B IPV4 What is the Default Subnet mask of Class C IPV4 What is the CIDR notation or / short handwriting of Subnet masks: Class A: /?. Explain the reason Class B: /? Explain the reason Class C: /?...
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
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT