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支持浮点除法吗?

Other Parts Discussed in Thread: CC3200

hi,

程序:

-----------------------------------------------------------------------------------

#define AMR_FRAME_COUNT_PER_SECOND 50

const int round(const double x)
{
   return((int)(x+0.5));
}

//程序运行到下面这句话寄死掉了,这个代码在VS2005上是可以正常运行的。 

temp2 = round((double)(((double)mode / (double)AMR_FRAME_COUNT_PER_SECOND) / (double)8));

-----------------------------------------------------------------------------------

我测试一下程序也会挂住!

float temp=0.0;

temp = (double)5000/(double)400;