This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28335 float 型强制转换类型

AD模块采集到数据后,经过计算保存为float型变量(大于0),但是想通过串口发送的话,怎么强制转换为无符号整数呢?

比如 float a;  

可以 (unsigned long)a 吗?