I am trying to convert 4 hexadecimal values to a float.
The hex values are for example 3F A0 00 00
. In binary representation they would correspond to 00111111 10100000 00000000 00000000
. If these 4 binary values are interpreted as one 32-bit float (accordingly to IEEE754) the decimal value of the float should be 1,25.
How to automatically make the conversion from hex values to decimal float in C++ (I am using Qt as Framework)?