Assembly language. Answer all the questions as simple as you can Q13 A single pr
ID: 3598997 • Letter: A
Question
Assembly language. Answer all the questions as simple as you can
Q13 A single precision floating point number can be represented in hexidecimal format A8200000 (1) How many total bits needed to represent a single precision floating point number? (2) Howmany bits are needed to represent the sign? (3) Howmany bits are needed to represent the integer part? (4) Howmany bits are needed to represent the fraction part? (5) This floating point number is positive or negative? Why? (6) What is a biased exponent for this floating point number?Explanation / Answer
Given hexadecimal representation: A8200000
1. How many total bits needed to represent a single precision floating point number?
To represent a single precision floating number, the number of bits required is: 32.
And its binary representation is: 1010 1000 0010 0000 0000 0000 0000 0000
2. How many bits are needed to represent the sign?
To represent the sign the number of bits required is just 1. A leading bit of 0
represent a positive number, and a 1 represent a negative number.
3. How many bits are needed to represent the integer part?
In the 32-bits to represent a single precision floating point number is: 8 bits.
This starts from the second bit from left to 9th bit, so the integral part in the
given number is: 0101 0000
4. How many bits are needed to represent the fraction part?
In the 32-bits to represent a single precision floating point number is: 32-8-1 = 23.
These are the last 23 bits in the representation. So, the fraction part in the given
number is: 010 0000 0000 0000 0000 0000
5. This floating point number is positive or negative. Why?
The number is negative, The MSB in the given example is a 1, which means a negative number.