Hi All,
I have a float number data = 25.99978
and I want to using sprintf to format it to %e.
sprintf(pointer, "%15.8e", data);
but pointer always 2.5e+01.
How should I do so it can format the width to 15 and precision to 8.
Thank you.
-Daniel
已解决! 转到解答。
I figure it out. The exel format it automatically.
在原帖中查看解决方案