We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be1a48 commit b7b6cfdCopy full SHA for b7b6cfd
Chapter19/double.c
@@ -1,13 +1,15 @@
1
// double.c
2
// Chapter 19
3
-// <book title>
+// Learn C Programming
4
//
5
// Demonstrate how to
6
// 1) print floating point in natural format nnnn.nnnn
7
// 2) print floating point in scientific notation
8
// 3) demonstrate G type conversion for optimal format of floating point
9
10
-// compile with: cc double.c -o double -Wall -Werror -std=c11
+// compile with:
11
+//
12
+// cc double.c -o double -Wall -Werror -std=c11
13
14
15
#include <stdio.h>
@@ -46,4 +48,6 @@ int main( void )
46
48
for( int i = 0 ; i < 10 ; i++, k *= 1000 )
47
49
printf( " [%18.12g] [%18.3g] [%18.3G] [%18g]\n" ,
50
k , k , k , k );
-}
51
+}
52
+
53
+ // eof
0 commit comments