To convert the decimal into floating point, we have 3
elements in a 32-bit floating point representation:
i) Sign (MSB)
ii) Exponent (8 bits after MSB)
iii) Mantissa (Remaining 23 bits)
a) -1313.3125
Since -1313.3125 is a negative number therefore sign bit=1
Exponent is decided by the nearest smaller or equal to 2n number. Since 210 = 1024 which is the nearest smaller number to 1313.3125 , therefore n=10.127 is the unique number for 32 bit floating point representation. It is known as bias
Thus 127 + 10 =137 = 10001001 in binary representation.
Mantissa. Convert the decimal represenatation of number -1313.3125 to binary i.e -10100100001.0101 and move the decimal point so that there is only one number present at the left
-10100100001.0101 = -1.01001000010101 x 210
Now, consider the fractional part and represented as 23 bits by adding zeros.
therefore mantissa = 01001000010101000000000
Thus the floating point representation of -1313.3125 is 1 10001001 01001000010101000000000
**************************************************************************************
By hexadecimal method :
-1313.3125 = -521.5
Steps:
division by 16 | Quotient | Remainder(decimal) | Remainder(hex) |
1313/16 | 82 | 1 | 1 |
82/16 | 5 | 2 | 2 |
5/16 | 0 | 5 | 5 |
The fractional part of number is found by multiplying .3125 and 16 = .3125 x 16 = 5
Thus 0.312510 = 0.5000000000016
Therfore hexadecimal of whole number + fractional number = -521.5
------------------------------------------------------------------------------------------------------------------------------------
b) (0.00011011)2 = 0.10546875( Decimal value)
Since 0.10546875 is a positive number therefore sign bit=0
Exponent is decided by the nearest smaller or equal to 2n number. Since 20 = 1 which is the nearest smaller number to 0.10546875 , therefore n=0.127 is the unique number for 32 bit floating point representation. It is known as bias
Thus 127 + 0 =127 = 1111111 in binary representation.
Mantissa.(0.00011011)2 is binary , move the decimal point so that there is only one number present at the left. Since already there is only one number in the left, so no changes
0.00011011 = 0.00011011
Now, consider the fractional part and represented as 23 bits by adding zeros.
therefore mantissa = 00011011000000000000000
Thus the floating-point representation of -1313.3125 is 0 1111111 00011011000000000000000
**************************************************************************************
By hexadecimal method :
(0.00011011)2 = 0.1B
Steps:
Question 3: Represent the following numbers in the memory using 32-bit floating-point representation, then in Hexadecimal....
Identify the floating point numbers corresponding to the following bit string IEEE 32 bit representation a) 1 00000000 00000000000000000000000 Decimal or Binary number______________? b) 0 11111111 00000000000000000000000 Decimal or Binary number_______________? Would you please shoe me the steps please? Thank you!
Consider the following 32 bit binary representation of the value using IEEE 754 single precision floating point representation. Show the corresponding signed number in decimal. 01000001001010100000000000000000
The following questions refer to IEEE floating point numbers. Show each step for full credit. a) Give the 64-bit double precision internal representation (in hexadecimal) of the decimal value given below. -9.625 ________________________________________________ b) Give the decimal value of the 32-bit single precision floating point number whose internal representation is given below (in hexadecimal). 3f400000 ________________________ c) Give the 32-bit single precision internal representation (in hexadecimal) of the decimal value given below. +13.375 ________________________________________________
please answer with steps. a. Convert the following decimal numbers to 32-bit floating point number. 1. 25.875 2.-7.0625 b. What decimal value is represented by the following 32-bit floating point number? 1. C10B000016 2. 46AB000016
Consider a 9-bit floating-point representation based on the IEEE floating-point format, with one sign bit, four exponent bits (k = 4), and four fraction bits (n = 4). The exponent bias is 24-1-1-7. The table that follows enumerates some of the values for this 9-bit floating-point representation. Fill in the blank table entries using the following directions: e : The value represented by considering the exponent field to be an unsigned integer (as a decimal value) E: The value of...
1. A 32-bit number stored in memory is 0x1234567. A) If this number represent an integer what is its value base 10? B) If this number represents an IEEE single precision floating point number what is its value base 10?
_________________________ Compute the IEEE 32 bit floating point format from the following base 10 number. Give your answer in hexadecimal. SHOW WORK (STEPS). 61.5 Base 10 Any helpful answers will be thumbs up for support!
Using 8-bit bytes, show how to represent 1.23456. Clearly state the byte values using hexadecimal, and the actual number represented with 7 fractional digits. (a) single precision (b) double precision Work shown is recommended, thank you!
In this question, you are provided with a decimal floating-point number. You are asked to encode this value into its IEEE-754 floating-point representation in the form of 8 hexadecimal digits. If rounding is needed, use rounding to the nearest floating-point number. Do NOT add any spaces or commas to your answer. Represent, i.e., encode, 262160.515625 into a 32-bit single-precision IEEE-754 FP value. If rounding is needed, use rounding to the nearest FP number. Your answer MUST BE JUST 8 hexadecimal...
Assuming IEEE 754 single-precision floating-point number representation, calculate the floating point number the following bit pattern represent. Show your work to get credit. 1 1 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Question 18 Assuming IEEE 754 single-precision floating-point number representation, calculate the floating point number the following bit pattern represent. Show your work to get credit. 1 100 0000 1101 0000 0000 0000...