4-7

#include<stdio.h>
#include<string.h>
#include<float.h>
int main(void)
{
double double_data=1.0/3.0;
float float_data=1.0/3.0;
printf("%.6f,%.6f\n",double_data,float_data);
printf("%.12f,%.12f\n",double_data,float_data);
printf("%.16f,%.16f\n",double_data,float_data);
printf("%d\n",FLT_DIG);
printf("%d\n",DBL_DIG);
return 0;
}

posted @ 2022-12-05 19:34  笨笨的小虫子  阅读(367)  评论(0)    收藏  举报