Answer:
IEEE 754 floating-point numbers in C++, Java and Python
Hide Copy Code
typedef union UnFloatingPointIEEE754
{
struct
{
unsigned int mantissa : 23;
unsigned int exponent : 8;
unsigned int sign : 1;
} raw;
float f;
} UFloatingPointIEEE754;
Explanation:
The Bit operation extracts the bit in order to create the desired value (exponent and mantissa), according to IEEE 754 method.
GOOD QUESTION