keil STM32 hex转浮点数及浮点数转字符串较好方案

在keil中添加#include “string.h”和#include "stdio.h"这两个头文件,同时编译时选择USE MicroLIB能够很好的调用库函数实现函数 loat HEXzhuanFLOAT(char *a) { float tempf=0.0; memcpy(&tempf,a,4); return tempf; } spa 能够实现HEX转浮点数。开发 mn=HEXzhuan
相关文章
相关标签/搜索