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 F5529 函数返回float问题



CCS  F5529 函数返回float问题。

定义的全局float变量,通过函数获取浮点值, 测试直接写死常量浮点,发现通过这样赋值后,获取的 不是期望值。

测试 函数return 2.0, 赋值的变量为0.0

测试 函数return 2.2, 赋值的变量为-13107.0

这个编译器难道又什么优化,,把这个弄丢了?