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?
SUBJECT: CYBER ESSENTIALS Convert between binary and hexadecimal values Question 7: Convert binary number to a...
SUBJECT: CYBER ESSENTIALS Convert between binary and hexadecimal values Question 7: Convert binary number to a hexadecimal number Binary number: 00001100 Hexadecimal value: ?? Question 8: Convert binary number to a hexadecimal number Binary number: 01001111 Hexadecimal value: ?? Question 9: Convert binary number to a hexadecimal number Binary number: 10101101 Hexadecimal value: ?? Question 10: Convert hexadecimal number to an 8 bit binary number Hexadecimal number: AB 8 bit binary number: Question 11: Convert hexadecimal number to an 8...
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
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b....
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b. 85 - binary: - hexadecimal: c. 128 - binary: - hexadecimal: d. 4563 - binary: - hexadecimal:
For the first three sections assume unsigned integers. Convert to binary and hexadecimal 85 4563 Convert...
For the first three sections assume unsigned integers. Convert to binary and hexadecimal 85 4563 Convert from binary to decimal and hexadecimal. 0b1010 1011 0b0011 0001 Convert from hexadecimal to binary and decimal. 0xB2 0x11
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal:...
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal: 2. 37 - binary: - decimal: 3. 0A -binary: - decimal: 4. 11 - binary: - decimal:
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT