I am trying to covert an array of chars (arriving from the SCI from ) to float32.
Can anyone help ?
I tried the following code:
unsigned char fArray[4];
float32 fff;
float32 *pArray;
fArray[0] = 0x40;
fArray[1] = 0x49;
fArray[2] = 0x0f;
fArray[3] = 0x19;
pArray = (float32*)fArray;
fff = *pArray;
I expected to find 0x40490F19 in fff but the watch window shows 0x00490040.
Thanx, Danny