add floaterr.c
This commit is contained in:
parent
44f1bfc5b4
commit
c178d494fb
11
chapter3/floaterr.c
Normal file
11
chapter3/floaterr.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user