Using IEEE 754 single precision floating point, write the hexadecimal representation of negative infinity.
ANS->
Floating-point numbers consist of three parts
1)Sign
Use 1 bit - 0 for positive and 1 for negative.
2)Exponent of 2
Uses 8 (single precision) or 11 (double precision) bits. The exponent is represented in excess notation with a bias of 127. The exponent of 2 is calculated by taking the exponent field as an unsigned number and subtracting 127 (111 1111).
3)Mantissa (also known as fraction or significand)
Uses 23 (single precision) or 52 (double precision) bits. Because normalized binary numbers always start with a 1 bit (except for zero), this first 1 is always implied. The normalized form can be obtained by prefixing the mantissa with "1.".
-Infinity = 1 11111111 00000000000000000000000
In Hexadecimal = FF800000
NOTE-> FOR ANY DOUBTS AND QUERIES PLEASE DO COMMENT AND IF YOU LIKED MY ANSWER PLEASE UPVOTE.
Get Answers For Free
Most questions answered within 1 hours.