]> sourceware.org Git - glibc.git/blame - manual/stdio-fp.c
(General Numeric): Update information about grouping representation in locale data...
[glibc.git] / manual / stdio-fp.c
CommitLineData
2f6d1f1b
UD
1/* This program is to generate one of the examples in stdio.texi. */
2
3#include <stdio.h>
4
5
6static void
7print (double v)
8{
9 printf ("|%13.4a|%13.4f|%13.4e|%13.4g|\n", v, v, v, v);
10}
11
12
13int
14main (void)
15{
16 print (0.0);
17 print (0.5);
18 print (1.0);
19 print (-1.0);
20 print (100.0);
21 print (1000.0);
22 print (10000.0);
23 print (12345.0);
24 print (100000.0);
25 print (123456.0);
26
27 return 0;
28}
This page took 0.13742 seconds and 5 git commands to generate.