add floaterr.c

This commit is contained in:
LingZhaoHui 2021-11-03 21:13:46 +08:00
parent 44f1bfc5b4
commit c178d494fb
1 changed files with 11 additions and 0 deletions

11
chapter3/floaterr.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
int main()
{
float a, b;
b = 2.0e20 + 1.0;
a = b - 2.0e20;
printf("a = %f\n", a);
return 0;
}