Convert Sign-Bit, Exponent and Mantissa to float?
问题 I have the Sign Bit, Exponent and Mantissa (as shown in the code below). I'm trying to take this value and turn it into the float. The goal of this is to get 59.98 (it'll read as 59.9799995 ) uint32_t FullBinaryValue = (Converted[0] << 24) | (Converted[1] << 16) | (Converted[2] << 8) | (Converted[3]); unsigned int sign_bit = (FullBinaryValue & 0x80000000); unsigned int exponent = (FullBinaryValue & 0x7F800000) >> 23; unsigned int mantissa = (FullBinaryValue & 0x7FFFFF); What I originally