This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Convert hex values to float

Other Parts Discussed in Thread: TMS320F28377S

Hi all,

  I am using TM4c123ENCPDT controller.I am facing problem in converting hex string to float.

eg.

float data;

 unsigned char ch[4]= {0x41,0x07,0xAE,0x14}; // 8.48 value in float

data = *(float*)ch;

But problem is that i am not getting 8.48 value.

Please help me what i am doing wrong.

Regards,

Dhanush