#include <stdio.h>
#include <stdint.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
double coefficient = 10000.2345;//一个系数
char str1[] = "3141592653589793238462643321432431234321434343432143142143214314.8123845575";
double temp = 0.0;//定义一个缓存器
char str2[]={0}; //定义一个字符串缓存器
temp = coefficient*atof(str1);//把字符串格式的小数点转为数字的小数点
printf("temp = %0.5e\r\n",temp); //打印temp的科学技术法格式的数据
sprintf(str2,"%0.5e",temp);//取5位有效的小数点转成科学计数法,再把科学计数法转为字符串存储到str2中
printf("%s",str2); //输出字符串格式的科学计数法数据
return 0;
}