I want to convert hexidecimal bytes from a serial device protocol to floating point
for example: 0x40 0xb0 0x00 0x00 represents 5.5
char msg[4];
float *f;
msg[0]=0x40;
msg[1]=0xB0;
msg[2]=0x00;
msg[3]=0x00;
f=(float*)msg doesn't seem to work
does anyone know how to do this?