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.

F28335浮点数除法运算出现问题,没法实现被除数是浮点型变量

今天做了测试,用28335计算 1 / 4,如果1和4都是具体的浮点型数值,可以得到正确的结果。但当我令float a = 4.0时,再计算1/a,程序报错,显示source not found

请问,我应该怎么设定,才能实现被除数是float格式的变量?