试过共用体的方法,不过ccs编译过后得到的4个字节跟标准IEEE 格式不一样。
如果把浮点数扩大1000倍,取整。那这个整数也是16位的,sci每次只能发1字节,要怎么通过把这个整数转换成两字节?
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.
试过共用体的方法,不过ccs编译过后得到的4个字节跟标准IEEE 格式不一样。
如果把浮点数扩大1000倍,取整。那这个整数也是16位的,sci每次只能发1字节,要怎么通过把这个整数转换成两字节?