📅  最后修改于: 2022-03-11 15:04:34.860000             🧑  作者: Mango
代码示例2
#include
int main()
{
float f = 1000;
char c[50]; //size of the number
sprintf(c, "%g", f);
printf(c);
printf("\n");
}