home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc_prog
/
chap03
/
fields.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-04-06
|
264 b
|
13 lines
/* fields.c -- shows the same number with different */
/* field widths and number of decimals */
main()
{
float f = 123.4560;
printf("%12.6f\n", f);
printf("%8.4f\n", f);
printf("%8.3f\n", f);
printf("%8.2f\n", f);
}