- UID
- 124411
- 性别
- 男
|
请教dsp56f805如何处理浮点数.
下面是我的测试程序.结果都不对.请较前辈如何处理浮点数?
谢谢.
******************************************
int a,b;
float c;
a = 487;
b = 15683;
c = a/b;
结果: c=0.0
******************************************
******************************************
int adc_value;
float volts;
........
adc_value = *adc_adrslt0;
volts = adc_value/2.0;
结果:
adc_value = 3156
volts = 7.132605e-38
****************************************** |
|