#include <stdio.h>
void main ()
{
float value = 1.23456;
printf ("%12.1e\n", value);
printf ("%12.3e\n", value);
printf ("%12.5e\n", value);
}
#include <stdio.h>
void main ()
{
float pi = 3.14159;
float radius = 2.0031;
printf("The circle's area is %e\n", 2 * pi * radius);
printf("The circle's area is %E\n", 2 * pi * radius);
}
请问这个e/E的用法和功能是怎么样的呢?
[此贴子已经被作者于2007-1-11 16:23:07编辑过]