#include<stdio.h>
int main(void)
{
float aboat = 32000.0;
double abet = 2.14e9;
long double dip = 5.32e-5;
printf("%f can be written %e\n", aboat, aboat);
printf(“And it 's %a in hexadecimal,powers 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 会变成And it 's 0x1.f400000000000p+14 in hexadecimal,powers of 2 notation
而书上是And it 's 0x1.f4p+14 in hexadecimal,powers of 2 notation