16进制char数组转浮点类型方法 用指针的方法,让一个float类型指针来整体去读数据内容 char charNum[4] = { 0xBA, 0X10,0X56,0X00 }; float fData= *(float*)&charNum;