float型按单个字节提取并能还原成原来的数。
char *f;
float fvalue = 1.235;
char buf[4];
f = (char *)&fvalue;
buf[0] = *(f);
buf[1] = *(f + 1);
buf[2] = *(f + 2);
buf[3] = *(f + 3);
for (int i = 0;i<4;i++)
printf("%x “, buf[i])
float x = 0;
x = ((float)buf);
printf(”\n%f ", x);