标签:未定义 csdn sdn stat meta leo com custom 十六进制
#include<stdio.h> int D12_1_showf_pt(void) { float aboat = 32000.0; double abet = 2.14e9; long double dip = 5.32e-5; printf("%f can be written %e \n", aboat, aboat); //下一行要求编译器支持C99或其中的相关特性 printf("And it‘s %a in hexademical,power of 2 notation\n", aboat); printf("%f can be written %e\n", abet, abet); printf("%Lf can be written %Le\n", dip, dip); return 0; }
运行结果:
上溢
无穷大
的值,printf
该值的时候会显示inf
或infinity
。下溢
低于正常值
的浮点值。#include<stdio.h> int D12_2_Floaterr(void) { float a, b; b = 2.0e20 + 1.0; a = b - 2.0e20; printf("%f\n", a); return 0; }
运行显示:
标签:未定义 csdn sdn stat meta leo com custom 十六进制
原文地址:https://www.cnblogs.com/ruigege0000/p/13233436.html