C语言将16进制转换成浮点型float 转换方法:
//0xF893DF42 //111.789 ; unsigned char buf[4] = [0xf8, 0x93, 0xdf, 0x42]; float *p = (float *)buf; float float_number = *p;
C语言将16进制转换成浮点型float 转换方法:
//0xF893DF42 //111.789 ; unsigned char buf[4] = [0xf8, 0x93, 0xdf, 0x42]; float *p = (float *)buf; float float_number = *p;
从百度点进来的,学习学习,呵呵!
YE! This Is A Good Blog!
炎热的夏天,看到这样的博客瞬间清凉了许多!