Convert the decimal number 14.875 to binary.
a.1110.0111
b.1100.1100
c.1110.1110
d.1111.1011
QUESTION
What is -47 (base 10) in binary 8-bit signed-magnitude.
a.11001011
b.10110100
c.11010000
d.10101111
1)
Converting 14.87510 in Binary system here so:
Whole part of a number is obtained by dividing on the basis new
| 14 | 2 | |||
| -14 | 7 | 2 | ||
| 0 | -6 | 3 | 2 | |
| 1 | -2 | 1 | ||
| 1 | ||||
![]() |
||||
Happened:1410 = 11102
The fractional part of number is found by multiplying on the basis
new
![]() |
|
| 0 | .875 |
| . | X 2 |
| 1 | 7.5 |
| X 2 | |
| 1 | .5 |
| X 2 | |
| 1 | 0 |
Happened:0.87510 = 0.1112
Add up together whole and fractional part here so:
11102 + 0.1112 = 1110.1112
Result of converting:
14.87510 = 1110.1112
So OPtion c.1110.1110 Is Correct
2)
1. We start with the positive version of the number:
|-47| = 47
2. Divide the number repeatedly by 2, keeping track of each
remainder, until we get a quotient that is equal to zero:
division = quotient + remainder;
47 ÷ 2 = 23 + 1;
23 ÷ 2 = 11 + 1;
11 ÷ 2 = 5 + 1;
5 ÷ 2 = 2 + 1;
2 ÷ 2 = 1 + 0;
1 ÷ 2 = 0 + 1;
3. Construct the base 2 representation of the positive number, by
taking all the remainders starting from the bottom of the list
constructed above:
47(10) = 10 1111(2)
4. Determine the signed binary number bit length:
The base 2 number's actual length, in bits: 6.
A signed binary's bit length must be equal to a power of 2, as
of:
21 = 2; 22 = 4; 23 = 8; 24 = 16; 25 = 32; 26 = 64; ...
First bit (the leftmost) is reserved for the sign:
0 = positive integer number, 1 = negative integer number
The least number that is a power of 2 and is larger than the actual
length so that the first bit (leftmost) could be zero is: 8.
5. Positive binary computer representation on 8 bits - if needed,
add extra 0s in front (to the left) of the base 2 number, up to the
required length:
47(10) = 0010 1111
6. To get the negative integer number representation change the
first bit (the leftmost), from 0 to 1:
-47(10) = 1010 1111
So Option d.10101111 is Correct
Convert the decimal number 14.875 to binary. a.1110.0111 b.1100.1100 c.1110.1110 d.1111.1011 QUESTION What is -47 (base...
C++
Convert a Number from Binary to Decimal using a stack: The language of a computer is a sequence of Os and 1s. The numbering system we use is called the decimal system, or base 10 system. The numbering system that the computer uses is called the binary system, or base 2 system. The purpose of this exercise is to write a function to convert a string representing a binary number from base 2 to base 10. To convert a...
a) Convert the binary number 101102 to base 8. b) Convert the decimal number 47.4410 to base 12. Find the base 12 fraction up to 6 digits to the right of the fraction point
3.8) Convert the hexadecimal number 0x15 to a decimal number. 3.9) Convert the hexadecimal number 0x19 to a decimal number. 3.10) Convert the decimal number -35 to an 8-bit two’s complement binary number. 3.11) Convert the decimal number -32 to an 8-bit two’s complement binary number. 3.12) Assuming the use of the two’s complement number system find the equivalent decimal values for the following 8-bit binary numbers: a)10000001 b)11111111 c)01010000 d)11100000 e)10000011 3.13) Convert the base 8 number 204 to...
1. Convert the binary number 10101102 to octal, decimal, and hexadecimal numbers. 2. Convert the decimal number 236.7510 to binary,octal, and hexadecimal numbers. 3. Add the following two binary numbers: 100111102 and 011110112. Remember to show any carries that are generated along the way. 4. Repeat the previous question, but this time subtract the second binary number from the first. Remember to show any borrows that are required along the way. 5. Determine the encoding of the decimal number 28610...
2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers. a. 110101 b. 01101010 c. 10110101 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Write the results in 6-bit two's complement binary number format and decimal number format. Indicate whether or not the sum overflows a 6-bit result. a. 14 + 12 b. 30 + 2 C. -7 + 20 d. -18-17 4. What is the signed/magnitude and two's complement range of...
1. What decimal number is represented by the following excess 8 notation? 2. Convert 1111 from excess eight representation to its equivalent base ten binary form 3. With two's complement signed binary representation, what is the range of numbers as written in binary and in decimal for an eight-bit cell? (lowest to highest) 4. Convert -7 from decimal to binary, assuming seven-bit two’s complement binary representation 5. Convert 111 1010 from binary to decimal assuming seven bit two's complement binary...
1. Convert the decimal number +164 and -164 to 9-bit binary numbers according to Sign magnitude, One’s complement, and Two’s complement 2. Convert the binary number 111011010 to base 10 decimal form (our regular number system) treating it as each of the following representations: Sign magnitude, One’s complement, and Two’s complement
Given the 8 - bit binary number: 1001 10 1 1 What decimal number does this represent if the computer uses: signed magnitude representation (a) signed 1's complement (b) (c) signed 2's complement Assuming 2's complement 8 - bit representation, consider the following: +70 010001 10 21 +80 010100000 10010110 Is this correct? Why or why not?
Need some help with my CS homework. 47. Convert the following numbers from decimal to binary: (a) 12.28125 (b) 0.0234375 (c) 0.7 49 (b) With excess 15 representation, what is the range of numbers as written in binary and in decimal for a five-bit cell? 50. Assuming a three-bit exponent field and a four-bit significand, write the bit pattern for the following decimal values: (c) 0.43 (d) 0.1015625
Exercise 1.25 Convert the following decimal numbers to unsigned binary numbers Exercise 1.31 Repeat Exercise 1.29, but convert to 8-bit sign/magnitude numbers KExercise 1.32 Repeat Exercise 1.30, but convert to 8-bit sign/magnitude numbers (a) 4210 (b) 6310 Exercise 1.33 Convert the following 4-bit two's complement numbers to 8-bit two's complement numbers. (c) 22910 (d) 84510 (a) 0101 b) 1010 XExercise 1.26 Convert the following decimal numbers to unsigned binary numbers. Exercise 1.34 Convert the following 4-bit two's complement numbers to...