From 44f1bfc5b485af9c6af6581c86150d58edd4f42d Mon Sep 17 00:00:00 2001 From: zeekling Date: Tue, 2 Nov 2021 23:14:59 +0800 Subject: [PATCH] add float_overflow.c --- chapter3/float_overflow.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 chapter3/float_overflow.c diff --git a/chapter3/float_overflow.c b/chapter3/float_overflow.c new file mode 100644 index 0000000..0008231 --- /dev/null +++ b/chapter3/float_overflow.c @@ -0,0 +1,9 @@ +#include + +int main() +{ + float too_big = 3.4E38 * 100.0F; + + printf("too_big=%e\n", too_big); + return 0; +}