#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
using namespace std;
int main()
{
//double->string
char buffer[100];
double b=1245683.141592653;
int ndight=20;//有效数字位数
gcvt(b,ndight,buffer);
cout<<buffer<<endl;
//string->double
string str="1245683.141592653";
double num=atof(str.c_str());
printf("%0.9lf\n",num);
}