把你的sprintf贴出来,我们看看。你这样说我们没有概念。
给你参考:
float a=1.0;
char str[10]={0};
sprintf(str"%f"a);
能解决你的问题的话可以给个好评