home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / fprintf.tex < prev    next >
LaTeX Document  |  1994-05-01  |  5.3 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: fprintf.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 66 70 72 69 6e 74 66 |\section|{fprintf|
|00000010| 20 2d 2d 2d 20 46 6f 72 | 6d 61 74 74 65 64 20 6f | --- For|matted o|
|00000020| 75 74 70 75 74 20 74 6f | 20 61 20 66 69 6c 65 7d |utput to| a file}|
|00000030| 0d 5c 6c 61 62 65 6c 7b | 66 6e 3a 66 70 72 69 6e |.\label{|fn:fprin|
|00000040| 74 66 7d 0d 5c 69 6e 64 | 65 78 7b 66 70 72 69 6e |tf}.\ind|ex{fprin|
|00000050| 74 66 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 66 6f 72 |tf()}.\i|ndex{for|
|00000060| 6d 61 74 74 65 64 20 6f | 75 74 70 75 74 20 74 6f |matted o|utput to|
|00000070| 20 61 20 66 69 6c 65 7d | 0d 5c 69 6e 64 65 78 7b | a file}|.\index{|
|00000080| 73 74 72 69 6e 67 73 21 | 6f 75 74 70 75 74 7d 0d |strings!|output}.|
|00000090| 5c 69 6e 64 65 78 7b 73 | 63 61 6c 61 72 73 21 6f |\index{s|calars!o|
|000000a0| 75 74 70 75 74 7d 0d 5c | 62 65 67 69 6e 7b 72 61 |utput}.\|begin{ra|
|000000b0| 69 6c 7d 0d 46 69 6c 65 | 50 72 69 6e 74 20 3a 20 |il}.File|Print : |
|000000c0| 27 66 70 72 69 6e 74 66 | 27 20 27 28 27 20 53 74 |'fprintf|' '(' St|
|000000d0| 72 69 6e 67 20 27 2c 27 | 20 53 74 72 69 6e 67 20 |ring ','| String |
|000000e0| 28 20 28 20 27 2c 27 20 | 56 61 72 69 61 62 6c 65 |( ( ',' |Variable|
|000000f0| 20 29 20 2a 20 29 20 27 | 29 27 20 3b 0d 5c 65 6e | ) * ) '|)' ;.\en|
|00000100| 64 7b 72 61 69 6c 7d 0d | 0d 54 68 65 20 5c 76 65 |d{rail}.|.The \ve|
|00000110| 72 62 2b 66 70 72 69 6e | 74 66 2b 20 66 75 6e 63 |rb+fprin|tf+ func|
|00000120| 74 69 6f 6e 20 69 73 20 | 69 6e 74 65 6e 64 65 64 |tion is |intended|
|00000130| 20 66 6f 72 20 77 72 69 | 74 69 6e 67 20 66 6f 72 | for wri|ting for|
|00000140| 6d 61 74 74 65 64 20 6f | 75 74 70 75 74 0d 74 6f |matted o|utput.to|
|00000150| 20 61 20 66 69 6c 65 2e | 20 49 74 20 69 73 20 73 | a file.| It is s|
|00000160| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 65 20 43 20 |imilar t|o the C |
|00000170| 6c 61 6e 67 75 61 67 65 | 20 66 75 6e 63 74 69 6f |language| functio|
|00000180| 6e 20 6f 66 20 74 68 65 | 20 73 61 6d 65 20 6e 61 |n of the| same na|
|00000190| 6d 65 2c 0d 74 68 6f 75 | 67 68 20 73 6f 6d 65 20 |me,.thou|gh some |
|000001a0| 66 65 61 74 75 72 65 73 | 20 61 72 65 20 6c 69 6d |features| are lim|
|000001b0| 69 74 65 64 20 6f 72 20 | 6e 6f 74 20 61 76 61 69 |ited or |not avai|
|000001c0| 6c 61 62 6c 65 2c 20 73 | 69 6e 63 65 20 5c 52 4c |lable, s|ince \RL|
|000001d0| 61 42 5c 0d 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |aB\.does|n't have|
|000001e0| 20 61 6c 6c 20 74 68 65 | 20 64 61 74 61 20 74 79 | all the| data ty|
|000001f0| 70 65 73 20 6f 66 20 43 | 2e 0d 0d 54 68 65 20 66 |pes of C|...The f|
|00000200| 69 72 73 74 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |irst arg|ument is|
|00000210| 20 61 20 73 74 72 69 6e | 67 20 77 68 69 63 68 20 | a strin|g which |
|00000220| 73 70 65 63 69 66 69 65 | 73 20 77 68 69 63 68 20 |specifie|s which |
|00000230| 66 69 6c 65 20 74 68 65 | 0d 66 6f 72 6d 61 74 74 |file the|.formatt|
|00000240| 65 64 20 73 74 72 69 6e | 67 20 69 73 20 74 6f 20 |ed strin|g is to |
|00000250| 62 65 20 77 72 69 74 74 | 65 6e 20 74 6f 2e 20 49 |be writt|en to. I|
|00000260| 66 20 74 68 69 73 20 61 | 72 67 75 6d 65 6e 74 20 |f this a|rgument |
|00000270| 73 74 61 72 74 73 20 77 | 69 74 68 0d 5c 76 65 72 |starts w|ith.\ver|
|00000280| 62 2b 7c 2b 2c 20 74 68 | 65 6e 20 74 68 65 20 72 |b+|+, th|en the r|
|00000290| 65 73 74 20 6f 66 20 74 | 68 65 20 61 72 67 75 6d |est of t|he argum|
|000002a0| 65 6e 74 20 69 73 20 74 | 61 6b 65 6e 20 61 73 20 |ent is t|aken as |
|000002b0| 61 20 70 72 6f 63 65 73 | 73 20 77 68 69 63 68 0d |a proces|s which.|
|000002c0| 73 68 6f 75 6c 64 20 62 | 65 20 69 6e 76 6f 6b 65 |should b|e invoke|
|000002d0| 64 2c 20 61 6e 64 20 74 | 68 65 20 66 6f 72 6d 61 |d, and t|he forma|
|000002e0| 74 74 65 64 20 6f 75 74 | 70 75 74 20 73 74 72 69 |tted out|put stri|
|000002f0| 6e 67 20 69 73 20 73 65 | 6e 74 20 74 6f 20 74 68 |ng is se|nt to th|
|00000300| 61 74 0d 70 72 6f 63 65 | 73 73 2e 0d 0d 54 68 65 |at.proce|ss...The|
|00000310| 20 73 65 63 6f 6e 64 20 | 73 74 72 69 6e 67 20 61 | second |string a|
|00000320| 72 67 75 6d 65 6e 74 20 | 69 73 20 74 68 65 20 66 |rgument |is the f|
|00000330| 6f 72 6d 61 74 20 73 74 | 72 69 6e 67 2e 20 20 49 |ormat st|ring. I|
|00000340| 74 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 74 68 |t consis|ts of th|
|00000350| 65 0d 74 65 78 74 20 74 | 6f 20 62 65 20 77 72 69 |e.text t|o be wri|
|00000360| 74 74 65 6e 20 6f 75 74 | 2c 20 61 6e 64 20 70 6f |tten out|, and po|
|00000370| 73 73 69 62 6c 79 20 73 | 6f 6d 65 20 63 6f 6e 76 |ssibly s|ome conv|
|00000380| 65 72 73 69 6f 6e 20 73 | 70 65 63 69 66 69 63 61 |ersion s|pecifica|
|00000390| 74 69 6f 6e 73 2e 0d 41 | 20 63 6f 6e 76 65 72 73 |tions..A| convers|
|000003a0| 69 6f 6e 20 73 70 65 63 | 69 66 69 63 61 74 69 6f |ion spec|ificatio|
|000003b0| 6e 20 69 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |n is a s|equence |
|000003c0| 6f 66 20 63 6f 6d 6d 61 | 6e 64 73 20 74 68 61 74 |of comma|nds that|
|000003d0| 20 64 65 74 65 72 6d 69 | 6e 65 0d 68 6f 77 20 74 | determi|ne.how t|
|000003e0| 68 65 20 72 65 6d 61 69 | 6e 64 65 72 20 6f 66 20 |he remai|nder of |
|000003f0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |the argu|ments ar|
|00000400| 65 20 74 6f 20 62 65 20 | 64 69 73 70 6c 61 79 65 |e to be |displaye|
|00000410| 64 2e 20 20 54 68 65 20 | 6c 65 66 74 20 6d 6f 73 |d. The |left mos|
|00000420| 74 0d 63 6f 6e 76 65 72 | 73 69 6f 6e 20 73 70 65 |t.conver|sion spe|
|00000430| 63 69 66 69 65 72 20 69 | 73 20 6d 61 74 63 68 65 |cifier i|s matche|
|00000440| 64 20 74 6f 20 74 68 65 | 20 74 68 69 72 64 20 61 |d to the| third a|
|00000450| 72 67 75 6d 65 6e 74 2c | 20 74 68 65 20 6e 65 78 |rgument,| the nex|
|00000460| 74 0d 73 70 65 63 69 66 | 69 65 72 20 74 6f 20 74 |t.specif|ier to t|
|00000470| 68 65 20 66 6f 75 72 74 | 68 20 61 72 67 75 6d 65 |he fourt|h argume|
|00000480| 6e 74 2c 20 61 6e 64 20 | 73 6f 20 6f 6e 2e 20 20 |nt, and |so on. |
|00000490| 45 61 63 68 20 61 72 67 | 75 6d 65 6e 74 20 68 61 |Each arg|ument ha|
|000004a0| 73 20 74 6f 20 62 65 0d | 6d 61 74 63 68 65 64 20 |s to be.|matched |
|000004b0| 74 6f 20 61 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |to a con|version |
|000004c0| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 2e 20 20 |specific|ation. |
|000004d0| 57 68 65 6e 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |When the| format |
|000004e0| 73 74 72 69 6e 67 20 69 | 73 0d 62 65 69 6e 67 20 |string i|s.being |
|000004f0| 73 63 61 6e 6e 65 64 2c | 20 74 68 65 20 61 72 67 |scanned,| the arg|
|00000500| 75 6d 65 6e 74 20 74 68 | 61 74 20 6d 61 74 63 68 |ument th|at match|
|00000510| 65 73 20 74 68 65 20 74 | 68 65 20 73 70 65 63 69 |es the t|he speci|
|00000520| 66 69 65 72 20 74 68 61 | 74 20 74 68 65 0d 73 63 |fier tha|t the.sc|
|00000530| 61 6e 6e 65 72 20 69 73 | 20 75 70 20 74 6f 20 69 |anner is| up to i|
|00000540| 73 20 63 61 6c 6c 65 64 | 20 74 68 65 20 7b 5c 65 |s called| the {\e|
|00000550| 6d 20 63 75 72 72 65 6e | 74 20 61 72 67 75 6d 65 |m curren|t argume|
|00000560| 6e 74 7d 2e 0d 0d 43 6f | 6e 76 65 72 73 69 6f 6e |nt}...Co|nversion|
|00000570| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 73 20 | specifi|cations |
|00000580| 61 6c 77 61 79 73 20 62 | 65 67 69 6e 20 77 69 74 |always b|egin wit|
|00000590| 68 20 61 20 5c 76 65 72 | 62 2b 25 2b 20 73 69 67 |h a \ver|b+%+ sig|
|000005a0| 6e 2e 20 20 54 68 65 20 | 6e 65 78 74 0d 74 68 69 |n. The |next.thi|
|000005b0| 6e 67 20 74 68 61 74 20 | 63 61 6e 20 6f 63 63 75 |ng that |can occu|
|000005c0| 72 20 61 72 65 20 74 68 | 65 20 66 6c 61 67 73 3a |r are th|e flags:|
|000005d0| 0d 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 |.\begin{|descript|
|000005e0| 69 6f 6e 7d 0d 5c 69 74 | 65 6d 5b 2d 2d 5d 20 63 |ion}.\it|em[--] c|
|000005f0| 61 75 73 69 6e 67 20 74 | 68 65 20 63 6f 6e 76 65 |ausing t|he conve|
|00000600| 72 73 69 6f 6e 20 74 6f | 20 62 65 20 6c 65 66 74 |rsion to| be left|
|00000610| 2d 6a 75 73 74 69 66 69 | 65 64 2c 20 69 6e 73 74 |-justifi|ed, inst|
|00000620| 65 61 64 0d 6f 66 20 74 | 68 65 20 64 65 66 61 75 |ead.of t|he defau|
|00000630| 6c 74 20 72 69 67 68 74 | 2d 6a 75 73 74 69 66 69 |lt right|-justifi|
|00000640| 65 64 2e 0d 5c 69 74 65 | 6d 5b 2b 5d 20 63 61 75 |ed..\ite|m[+] cau|
|00000650| 73 69 6e 67 20 61 20 73 | 69 67 6e 20 74 6f 20 61 |sing a s|ign to a|
|00000660| 6c 77 61 79 73 20 62 65 | 20 70 72 65 70 65 6e 64 |lways be| prepend|
|00000670| 65 64 20 74 6f 20 74 68 | 65 0d 63 6f 6e 76 65 72 |ed to th|e.conver|
|00000680| 73 69 6f 6e 2c 20 69 6e | 73 74 65 61 64 20 6f 66 |sion, in|stead of|
|00000690| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 6f 66 20 | the def|ault of |
|000006a0| 6f 6e 6c 79 20 70 72 65 | 70 65 6e 64 69 6e 67 20 |only pre|pending |
|000006b0| 6d 69 6e 75 73 20 73 69 | 67 6e 73 2e 0d 5c 69 74 |minus si|gns..\it|
|000006c0| 65 6d 5b 5c 23 5d 20 77 | 68 69 63 68 20 63 61 75 |em[\#] w|hich cau|
|000006d0| 73 65 73 20 74 68 65 20 | 66 6f 72 6d 61 74 20 74 |ses the |format t|
|000006e0| 6f 20 62 65 20 6f 66 20 | 61 6e 20 61 6c 74 65 72 |o be of |an alter|
|000006f0| 6e 61 74 65 20 66 6f 72 | 6d 2e 0d 54 68 69 73 20 |nate for|m..This |
|00000700| 6f 6e 6c 79 20 68 61 73 | 20 6d 65 61 6e 69 6e 67 |only has| meaning|
|00000710| 20 66 6f 72 20 5c 76 65 | 72 62 2b 65 2b 2c 20 5c | for \ve|rb+e+, \|
|00000720| 76 65 72 62 2b 45 2b 2c | 20 5c 76 65 72 62 2b 66 |verb+E+,| \verb+f|
|00000730| 2b 2c 20 5c 76 65 72 62 | 2b 67 2b 20 61 6e 64 0d |+, \verb|+g+ and.|
|00000740| 5c 76 65 72 62 2b 47 2b | 20 66 6f 72 6d 61 74 73 |\verb+G+| formats|
|00000750| 2c 20 77 68 65 72 65 20 | 69 73 20 63 61 75 73 65 |, where |is cause|
|00000760| 73 20 61 20 64 65 63 69 | 6d 61 6c 20 70 6f 69 6e |s a deci|mal poin|
|00000770| 74 20 74 6f 20 62 65 20 | 75 73 65 64 20 61 6c 77 |t to be |used alw|
|00000780| 61 79 73 2e 0d 49 74 20 | 61 6c 73 6f 20 70 72 65 |ays..It |also pre|
|00000790| 76 65 6e 74 73 20 73 75 | 70 70 72 65 73 73 69 6f |vents su|ppressio|
|000007a0| 6e 20 6f 66 20 74 72 61 | 69 6c 69 6e 67 20 7a 65 |n of tra|iling ze|
|000007b0| 72 6f 73 20 66 6f 72 20 | 5c 76 65 72 62 2b 67 2b |ros for |\verb+g+|
|000007c0| 20 61 6e 64 0d 5c 76 65 | 72 62 2b 47 2b 20 6f 70 | and.\ve|rb+G+ op|
|000007d0| 74 69 6f 6e 73 2e 0d 5c | 69 74 65 6d 5b 30 20 28 |tions..\|item[0 (|
|000007e0| 7a 65 72 6f 29 5d 20 77 | 68 69 63 68 20 63 61 75 |zero)] w|hich cau|
|000007f0| 73 65 73 20 70 61 64 64 | 69 6e 67 20 62 79 20 6c |ses padd|ing by l|
|00000800| 65 61 64 69 6e 67 20 7a | 65 72 6f 73 2c 20 69 6e |eading z|eros, in|
|00000810| 73 74 65 61 64 0d 6f 66 | 20 74 68 65 20 64 65 66 |stead.of| the def|
|00000820| 61 75 6c 74 20 73 70 61 | 63 65 20 70 61 64 64 69 |ault spa|ce paddi|
|00000830| 6e 67 2e 20 20 54 68 69 | 73 20 69 73 20 6f 76 65 |ng. Thi|s is ove|
|00000840| 72 72 69 64 64 65 6e 20 | 62 79 20 62 6f 74 68 20 |rridden |by both |
|00000850| 5c 76 65 72 62 2b 2d 2b | 20 61 6e 64 0d 73 70 65 |\verb+-+| and.spe|
|00000860| 63 69 66 79 69 6e 67 20 | 61 20 70 72 65 63 69 73 |cifying |a precis|
|00000870| 69 6f 6e 2e 0d 5c 69 74 | 65 6d 5b 7b 5c 69 74 20 |ion..\it|em[{\it |
|00000880| 73 70 61 63 65 7d 5d 20 | 77 68 69 63 68 20 63 61 |space}] |which ca|
|00000890| 75 73 65 73 20 61 20 73 | 70 61 63 65 20 74 6f 20 |uses a s|pace to |
|000008a0| 62 65 20 70 72 65 70 65 | 6e 64 65 64 20 69 66 20 |be prepe|nded if |
|000008b0| 6e 6f 20 73 69 67 6e 20 | 69 73 0d 70 72 65 73 65 |no sign |is.prese|
|000008c0| 6e 74 2e 20 20 54 68 69 | 73 20 69 73 20 6f 76 65 |nt. Thi|s is ove|
|000008d0| 72 72 69 64 64 65 6e 20 | 62 79 20 74 68 65 20 5c |rridden |by the \|
|000008e0| 76 65 72 62 7c 2b 7c 20 | 66 6c 61 67 2e 0d 5c 65 |verb|+| |flag..\e|
|000008f0| 6e 64 7b 64 65 73 63 72 | 69 70 74 69 6f 6e 7d 0d |nd{descr|iption}.|
|00000900| 0d 46 6f 6c 6c 6f 77 69 | 6e 67 20 61 6e 79 20 66 |.Followi|ng any f|
|00000910| 6c 61 67 73 2c 20 61 20 | 6d 69 6e 69 6d 75 6d 20 |lags, a |minimum |
|00000920| 66 69 65 6c 64 20 77 69 | 64 74 68 20 6d 61 79 20 |field wi|dth may |
|00000930| 62 65 20 73 70 65 63 69 | 66 69 65 64 2e 20 20 54 |be speci|fied. T|
|00000940| 68 69 73 20 69 73 0d 65 | 69 74 68 65 72 20 61 20 |his is.e|ither a |
|00000950| 69 6e 74 65 67 65 72 20 | 63 6f 6e 73 74 61 6e 74 |integer |constant|
|00000960| 2c 20 6f 72 20 61 20 5c | 76 65 72 62 2b 2a 2b 20 |, or a \|verb+*+ |
|00000970| 63 68 61 72 61 63 74 65 | 72 2e 20 49 66 20 69 74 |characte|r. If it|
|00000980| 20 69 73 20 61 0d 63 6f | 6e 73 74 61 6e 74 2c 20 | is a.co|nstant, |
|00000990| 74 68 69 73 20 69 73 20 | 74 68 65 20 6d 69 6e 69 |this is |the mini|
|000009a0| 6d 75 6d 20 77 69 64 74 | 68 2e 20 20 49 66 20 69 |mum widt|h. If i|
|000009b0| 74 20 69 73 20 61 20 5c | 76 65 72 62 2b 2a 2b 2c |t is a \|verb+*+,|
|000009c0| 20 74 68 65 6e 20 74 68 | 65 0d 63 75 72 72 65 6e | then th|e.curren|
|000009d0| 74 20 61 72 67 75 6d 65 | 6e 74 20 28 77 68 69 63 |t argume|nt (whic|
|000009e0| 68 20 6d 75 73 74 20 62 | 65 20 61 20 73 63 61 6c |h must b|e a scal|
|000009f0| 61 72 29 20 69 73 20 75 | 73 65 64 20 74 6f 20 73 |ar) is u|sed to s|
|00000a00| 70 65 63 69 66 79 20 74 | 68 65 0d 6d 69 6e 69 6d |pecify t|he.minim|
|00000a10| 75 6d 20 77 69 64 74 68 | 2e 20 20 49 66 20 74 68 |um width|. If th|
|00000a20| 65 72 65 20 69 73 20 61 | 6e 20 6f 70 74 69 6f 6e |ere is a|n option|
|00000a30| 61 6c 20 77 69 64 74 68 | 2c 20 74 68 65 6e 20 74 |al width|, then t|
|00000a40| 68 65 72 65 20 6d 61 79 | 20 61 6c 73 6f 20 62 65 |here may| also be|
|00000a50| 0d 61 6e 20 6f 70 74 69 | 6f 6e 20 70 72 65 63 69 |.an opti|on preci|
|00000a60| 73 69 6f 6e 2e 20 20 54 | 68 69 73 20 69 73 20 73 |sion. T|his is s|
|00000a70| 70 65 63 69 66 69 65 64 | 20 69 6e 20 74 68 65 20 |pecified| in the |
|00000a80| 73 61 6d 65 20 77 61 79 | 20 61 73 20 74 68 65 20 |same way| as the |
|00000a90| 77 69 64 74 68 2c 0d 75 | 73 69 6e 67 20 65 69 74 |width,.u|sing eit|
|00000aa0| 68 65 72 20 61 6e 64 20 | 69 6e 74 65 67 65 72 20 |her and |integer |
|00000ab0| 63 6f 6e 73 74 61 6e 74 | 2c 20 6f 72 20 61 20 5c |constant|, or a \|
|00000ac0| 76 65 72 62 2b 2a 2b 20 | 74 6f 20 73 69 67 6e 69 |verb+*+ |to signi|
|00000ad0| 66 79 20 74 68 61 74 20 | 74 68 65 0d 63 75 72 72 |fy that |the.curr|
|00000ae0| 65 6e 74 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |ent argu|ment is |
|00000af0| 74 6f 20 62 65 20 75 73 | 65 64 2e 0d 0d 54 68 65 |to be us|ed...The|
|00000b00| 20 6e 65 78 74 20 74 68 | 69 6e 67 20 74 68 61 74 | next th|ing that|
|00000b10| 20 63 61 6e 20 6f 63 63 | 75 72 20 69 73 20 61 6e | can occ|ur is an|
|00000b20| 20 6f 70 74 69 6f 6e 61 | 6c 20 5c 76 65 72 62 2b | optiona|l \verb+|
|00000b30| 68 2b 20 6f 72 20 5c 76 | 65 72 62 2b 6c 2b 0d 28 |h+ or \v|erb+l+.(|
|00000b40| 65 6c 6c 29 20 6d 6f 64 | 69 66 69 65 72 2e 20 20 |ell) mod|ifier. |
|00000b50| 54 68 69 73 20 63 68 61 | 6e 67 65 73 20 74 68 65 |This cha|nges the|
|00000b60| 20 62 65 68 61 76 69 6f | 72 20 6f 66 20 74 68 65 | behavio|r of the|
|00000b70| 20 73 75 62 73 65 71 75 | 65 6e 74 20 5c 76 65 72 | subsequ|ent \ver|
|00000b80| 62 2b 69 2b 0d 61 6e 64 | 20 5c 76 65 72 62 2b 75 |b+i+.and| \verb+u|
|00000b90| 2b 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 73 70 65 |+ conver|sion spe|
|00000ba0| 63 69 66 69 65 72 73 2e | 20 20 49 74 20 69 73 20 |cifiers.| It is |
|00000bb0| 6c 65 67 61 6c 2c 20 62 | 75 74 20 68 61 73 20 6e |legal, b|ut has n|
|00000bc0| 6f 20 65 66 66 65 63 74 | 2c 0d 77 69 74 68 20 74 |o effect|,.with t|
|00000bd0| 68 65 20 5c 76 65 72 62 | 2b 64 2b 20 73 70 65 63 |he \verb|+d+ spec|
|00000be0| 69 66 69 65 72 2e 20 20 | 49 74 20 69 73 20 69 6c |ifier. |It is il|
|00000bf0| 6c 65 67 61 6c 20 77 69 | 74 68 20 61 6c 6c 20 6f |legal wi|th all o|
|00000c00| 74 68 65 72 20 73 70 65 | 63 69 66 69 65 72 73 2e |ther spe|cifiers.|
|00000c10| 0d 0d 54 68 65 20 66 69 | 6e 61 6c 20 74 68 69 6e |..The fi|nal thin|
|00000c20| 67 20 74 68 61 74 20 6d | 75 73 74 20 6f 63 63 75 |g that m|ust occu|
|00000c30| 72 20 69 73 20 61 20 63 | 68 61 72 61 63 74 65 72 |r is a c|haracter|
|00000c40| 20 73 70 65 63 69 66 79 | 69 6e 67 20 74 68 65 20 | specify|ing the |
|00000c50| 77 61 79 20 69 6e 0d 77 | 68 69 63 68 20 74 68 65 |way in.w|hich the|
|00000c60| 20 63 75 72 72 65 6e 74 | 20 76 61 72 69 61 62 6c | current| variabl|
|00000c70| 65 20 69 73 20 74 6f 20 | 62 65 20 64 69 73 70 6c |e is to |be displ|
|00000c80| 61 79 65 64 2e 20 20 54 | 68 65 20 76 61 6c 69 64 |ayed. T|he valid|
|00000c90| 20 63 68 61 72 61 63 74 | 65 72 73 0d 61 72 65 0d | charact|ers.are.|
|00000ca0| 5c 62 65 67 69 6e 7b 64 | 65 73 63 72 69 70 74 69 |\begin{d|escripti|
|00000cb0| 6f 6e 7d 0d 5c 69 74 65 | 6d 5b 63 5d 20 63 61 75 |on}.\ite|m[c] cau|
|00000cc0| 73 65 73 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |ses the |argument|
|00000cd0| 20 74 6f 20 62 65 20 63 | 6f 6e 76 65 72 74 65 64 | to be c|onverted|
|00000ce0| 20 74 6f 20 61 6e 20 75 | 6e 73 69 67 6e 65 64 0d | to an u|nsigned.|
|00000cf0| 63 68 61 72 61 63 74 65 | 72 20 66 6f 72 6d 61 74 |characte|r format|
|00000d00| 2e 0d 5c 69 74 65 6d 5b | 64 5d 20 77 68 69 63 68 |..\item[|d] which|
|00000d10| 20 63 61 75 73 65 73 20 | 74 68 65 20 6f 75 74 70 | causes |the outp|
|00000d20| 75 74 20 74 6f 20 62 65 | 20 64 69 73 70 6c 61 79 |ut to be| display|
|00000d30| 65 64 20 61 73 20 61 20 | 64 65 63 69 6d 61 6c 0d |ed as a |decimal.|
|00000d40| 73 74 72 69 6e 67 20 6f | 66 20 74 68 65 20 66 6f |string o|f the fo|
|00000d50| 72 6d 20 7b 5c 69 74 20 | 5b 2d 5d 64 64 64 64 7d |rm {\it |[-]dddd}|
|00000d60| 2e 20 20 54 68 65 20 70 | 72 65 63 69 73 69 6f 6e |. The p|recision|
|00000d70| 20 73 70 65 63 69 66 69 | 65 73 20 74 68 65 20 6d | specifi|es the m|
|00000d80| 69 6e 69 6d 75 6d 0d 6e | 75 6d 62 65 72 20 6f 66 |inimum.n|umber of|
|00000d90| 20 64 69 67 69 74 73 20 | 74 6f 20 61 70 70 65 61 | digits |to appea|
|00000da0| 72 2c 20 77 69 74 68 20 | 61 20 64 65 66 61 75 6c |r, with |a defaul|
|00000db0| 74 20 6f 66 20 6f 6e 65 | 2e 0d 5c 69 74 65 6d 5b |t of one|..\item[|
|00000dc0| 65 5d 20 63 61 75 73 65 | 73 20 74 68 65 20 6f 75 |e] cause|s the ou|
|00000dd0| 74 70 75 74 20 74 6f 20 | 62 65 20 64 69 73 70 6c |tput to |be displ|
|00000de0| 61 79 65 64 20 69 6e 20 | 73 63 69 65 6e 74 69 66 |ayed in |scientif|
|00000df0| 69 63 0d 6e 6f 74 61 74 | 69 6f 6e 20 6f 66 20 74 |ic.notat|ion of t|
|00000e00| 68 65 20 66 6f 72 6d 20 | 7b 5c 69 74 20 5b 2d 5d |he form |{\it [-]|
|00000e10| 64 2e 64 64 64 7b 5c 76 | 65 72 62 2b 65 2b 7d 24 |d.ddd{\v|erb+e+}$|
|00000e20| 5c 70 6d 24 64 64 7d 2c | 20 77 68 65 72 65 20 7b |\pm$dd},| where {|
|00000e30| 5c 69 74 20 64 7d 20 69 | 73 0d 61 6e 79 20 64 69 |\it d} i|s.any di|
|00000e40| 67 69 74 2e 20 20 54 68 | 65 72 65 20 69 73 20 61 |git. Th|ere is a|
|00000e50| 6c 77 61 79 73 20 6f 6e | 65 20 6e 6f 6e 2d 7a 65 |lways on|e non-ze|
|00000e60| 72 6f 20 64 69 67 69 74 | 20 62 65 66 6f 72 65 20 |ro digit| before |
|00000e70| 74 68 65 20 64 65 63 69 | 6d 61 6c 0d 70 6c 61 63 |the deci|mal.plac|
|00000e80| 65 20 69 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |e if the| argumen|
|00000e90| 74 20 69 73 20 6e 6f 6e | 2d 7a 65 72 6f 2e 20 20 |t is non|-zero. |
|00000ea0| 54 68 65 20 70 72 65 63 | 69 73 69 6f 6e 20 73 70 |The prec|ision sp|
|00000eb0| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 73 65 74 73 |ecificat|ion sets|
|00000ec0| 0d 68 6f 77 20 6d 61 6e | 79 20 64 69 67 69 74 73 |.how man|y digits|
|00000ed0| 20 61 72 65 20 70 72 65 | 73 65 6e 74 20 61 66 74 | are pre|sent aft|
|00000ee0| 65 72 20 74 68 65 20 64 | 65 63 69 6d 61 6c 20 70 |er the d|ecimal p|
|00000ef0| 6c 61 63 65 2c 20 77 69 | 74 68 20 61 20 64 65 66 |lace, wi|th a def|
|00000f00| 61 75 6c 74 20 6f 66 0d | 73 69 78 2e 0d 5c 69 74 |ault of.|six..\it|
|00000f10| 65 6d 5b 45 5d 20 69 73 | 20 74 68 65 20 73 61 6d |em[E] is| the sam|
|00000f20| 65 20 61 73 20 5c 76 65 | 72 62 2b 65 2b 2c 20 65 |e as \ve|rb+e+, e|
|00000f30| 78 63 65 70 74 20 74 68 | 61 74 20 61 20 75 70 70 |xcept th|at a upp|
|00000f40| 65 72 20 63 61 73 65 0d | 6c 65 74 74 65 72 20 5c |er case.|letter \|
|00000f50| 76 65 72 62 2b 45 2b 20 | 69 73 20 75 73 65 64 20 |verb+E+ |is used |
|00000f60| 74 6f 20 73 65 70 65 72 | 61 74 65 20 74 68 65 20 |to seper|ate the |
|00000f70| 6d 61 6e 74 69 73 73 61 | 20 61 6e 64 20 65 78 70 |mantissa| and exp|
|00000f80| 6f 6e 65 6e 74 20 69 6e | 73 74 65 61 64 0d 6f 66 |onent in|stead.of|
|00000f90| 20 61 20 6c 6f 77 65 72 | 20 63 61 73 65 20 5c 76 | a lower| case \v|
|00000fa0| 65 72 62 2b 65 2b 2e 0d | 5c 69 74 65 6d 5b 66 5d |erb+e+..|\item[f]|
|00000fb0| 20 63 61 75 73 65 73 20 | 74 68 65 20 6f 75 74 70 | causes |the outp|
|00000fc0| 75 74 20 74 6f 20 62 65 | 20 64 69 73 70 6c 61 79 |ut to be| display|
|00000fd0| 65 64 20 61 73 20 61 20 | 64 65 63 69 6d 61 6c 20 |ed as a |decimal |
|00000fe0| 73 74 72 69 6e 67 0d 6f | 66 20 74 68 65 20 66 6f |string.o|f the fo|
|00000ff0| 72 6d 20 7b 5c 69 74 20 | 64 64 64 2e 64 64 64 7d |rm {\it |ddd.ddd}|
|00001000| 2e 20 20 74 68 65 20 70 | 72 65 63 69 73 69 6f 6e |. the p|recision|
|00001010| 20 73 70 65 63 69 66 69 | 65 73 20 68 6f 77 20 6d | specifi|es how m|
|00001020| 61 6e 79 20 64 69 67 69 | 74 73 0d 73 68 6f 75 6c |any digi|ts.shoul|
|00001030| 64 20 61 70 70 65 61 72 | 20 61 66 74 65 72 20 74 |d appear| after t|
|00001040| 68 65 20 64 65 63 69 6d | 61 6c 20 70 6c 61 63 65 |he decim|al place|
|00001050| 2c 20 77 69 74 68 20 61 | 20 64 65 66 61 75 6c 74 |, with a| default|
|00001060| 20 6f 66 20 73 69 78 2e | 0d 5c 69 74 65 6d 5b 67 | of six.|.\item[g|
|00001070| 5d 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |] is the| same as|
|00001080| 20 5c 76 65 72 62 2b 65 | 2b 20 69 73 20 74 68 65 | \verb+e|+ is the|
|00001090| 20 65 78 70 6f 6e 65 6e | 74 20 77 6f 75 6c 64 20 | exponen|t would |
|000010a0| 62 65 20 6c 65 73 73 0d | 74 68 61 6e 20 2d 34 2c |be less.|than -4,|
|000010b0| 20 6f 72 20 67 72 65 61 | 74 65 72 20 74 68 61 6e | or grea|ter than|
|000010c0| 20 74 68 65 20 70 72 65 | 63 69 73 69 6f 6e 2e 20 | the pre|cision. |
|000010d0| 20 4f 74 68 65 72 77 69 | 73 65 2c 20 69 74 20 69 | Otherwi|se, it i|
|000010e0| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 0d 5c 76 |s the sa|me as.\v|
|000010f0| 65 72 62 2b 66 2b 2e 0d | 5c 69 74 65 6d 5b 47 5d |erb+f+..|\item[G]|
|00001100| 20 69 73 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 | is the |same as |
|00001110| 5c 76 65 72 62 2b 45 2b | 20 69 73 20 74 68 65 20 |\verb+E+| is the |
|00001120| 65 78 70 6f 6e 65 6e 74 | 20 77 6f 75 6c 64 20 62 |exponent| would b|
|00001130| 65 20 6c 65 73 73 0d 74 | 68 61 6e 20 2d 34 2c 20 |e less.t|han -4, |
|00001140| 6f 72 20 67 72 65 61 74 | 65 72 20 74 68 61 6e 20 |or great|er than |
|00001150| 74 68 65 20 70 72 65 63 | 69 73 69 6f 6e 2e 20 20 |the prec|ision. |
|00001160| 4f 74 68 65 72 77 69 73 | 65 2c 20 69 74 20 69 73 |Otherwis|e, it is|
|00001170| 20 74 68 65 20 73 61 6d | 65 20 61 73 0d 5c 76 65 | the sam|e as.\ve|
|00001180| 72 62 2b 66 2b 2e 0d 5c | 69 74 65 6d 5b 69 5d 20 |rb+f+..\|item[i] |
|00001190| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 5c |is the s|ame as \|
|000011a0| 76 65 72 62 2b 64 2b 2c | 20 65 78 63 65 70 74 20 |verb+d+,| except |
|000011b0| 74 68 61 74 20 74 68 65 | 20 5c 76 65 72 62 2b 6c |that the| \verb+l|
|000011c0| 2b 20 66 6c 61 67 0d 6d | 61 79 20 62 65 20 75 73 |+ flag.m|ay be us|
|000011d0| 65 64 2e 0d 5c 69 74 65 | 6d 5b 73 5d 20 6d 61 79 |ed..\ite|m[s] may|
|000011e0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 64 69 73 70 | be used| to disp|
|000011f0| 6c 61 79 20 73 74 72 69 | 6e 67 73 2e 20 20 49 66 |lay stri|ngs. If|
|00001200| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 20 69 73 | the arg|ument is|
|00001210| 20 61 0d 73 63 61 6c 61 | 72 2c 20 74 68 65 6e 20 | a.scala|r, then |
|00001220| 74 68 69 73 20 69 73 20 | 74 68 65 20 73 61 6d 65 |this is |the same|
|00001230| 20 61 73 20 5c 76 65 72 | 62 2b 66 2b 2e 0d 5c 69 | as \ver|b+f+..\i|
|00001240| 74 65 6d 5b 75 5d 20 64 | 69 73 70 6c 61 79 73 20 |tem[u] d|isplays |
|00001250| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 61 73 20 |the argu|ment as |
|00001260| 61 6e 20 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 65 |an unsig|ned inte|
|00001270| 67 65 72 20 76 61 6c 75 | 65 2e 0d 54 68 65 20 70 |ger valu|e..The p|
|00001280| 72 65 63 69 73 69 6f 6e | 20 73 70 65 63 69 66 69 |recision| specifi|
|00001290| 65 73 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 6e |es the m|inimum n|
|000012a0| 75 6d 62 65 72 20 6f 66 | 20 64 69 67 69 74 73 20 |umber of| digits |
|000012b0| 74 6f 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 2c |to be di|splayed,|
|000012c0| 0d 77 69 74 68 20 61 20 | 64 65 66 61 75 6c 74 20 |.with a |default |
|000012d0| 76 61 6c 75 65 20 6f 66 | 20 6f 6e 65 2e 0d 5c 65 |value of| one..\e|
|000012e0| 6e 64 7b 64 65 73 63 72 | 69 70 74 69 6f 6e 7d 0d |nd{descr|iption}.|
|000012f0| 0d 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 61 |.The num|ber of a|
|00001300| 72 67 75 6d 65 6e 74 73 | 20 6d 75 73 74 20 6d 61 |rguments| must ma|
|00001310| 74 63 68 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |tch the |number o|
|00001320| 66 20 63 6f 6e 76 65 72 | 73 69 6f 6e 0d 73 70 65 |f conver|sion.spe|
|00001330| 63 69 66 69 63 61 74 69 | 6f 6e 73 2c 20 69 6e 63 |cificati|ons, inc|
|00001340| 6c 75 64 69 6e 67 20 74 | 68 6f 73 65 20 72 65 71 |luding t|hose req|
|00001350| 75 69 72 65 64 20 66 6f | 72 20 77 69 64 74 68 20 |uired fo|r width |
|00001360| 61 6e 64 20 70 72 65 63 | 69 73 69 6f 6e 0d 73 70 |and prec|ision.sp|
|00001370| 65 63 69 66 69 63 61 74 | 69 6f 6e 73 2e 20 0d 0d |ecificat|ions. ..|
|00001380| 5c 76 65 72 62 2b 66 70 | 72 69 6e 74 66 2b 20 63 |\verb+fp|rintf+ c|
|00001390| 61 6e 6e 6f 74 20 70 72 | 69 6e 74 20 6f 75 74 20 |annot pr|int out |
|000013a0| 77 68 6f 6c 65 20 6d 61 | 74 72 69 63 65 73 20 6f |whole ma|trices o|
|000013b0| 72 20 6c 69 73 74 73 2e | 20 20 5c 76 65 72 62 2b |r lists.| \verb+|
|000013c0| 77 72 69 74 65 2b 0d 6b | 6e 6f 77 73 20 68 6f 77 |write+.k|nows how|
|000013d0| 20 74 6f 20 64 65 61 6c | 20 77 69 74 68 20 65 6e | to deal| with en|
|000013e0| 74 69 72 65 20 64 61 74 | 61 20 6f 62 6a 65 63 74 |tire dat|a object|
|000013f0| 73 2e 0d 0d 0d 5c 70 61 | 72 61 67 72 61 70 68 7b |s....\pa|ragraph{|
|00001400| 45 78 61 6d 70 6c 65 7d | 0d 5c 69 6e 64 65 78 7b |Example}|.\index{|
|00001410| 65 78 61 6d 70 6c 65 20 | 6f 66 20 66 70 72 69 6e |example |of fprin|
|00001420| 74 66 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 66 70 72 |tf()}.\i|ndex{fpr|
|00001430| 69 6e 74 66 28 29 21 65 | 78 61 6d 70 6c 65 7d 0d |intf()!e|xample}.|
|00001440| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00001450| 0d 44 75 6d 6d 79 20 45 | 78 61 6d 70 6c 65 0d 5c |.Dummy E|xample.\|
|00001460| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0d 53 |end{verb|atim}..S|
|00001470| 65 65 20 61 6c 73 6f 3a | 20 50 61 67 65 7e 5c 70 |ee also:| Page~\p|
|00001480| 61 67 65 72 65 66 7b 66 | 6e 3a 70 72 69 6e 74 66 |ageref{f|n:printf|
|00001490| 7d 20 5c 76 65 72 62 2b | 70 72 69 6e 74 66 28 29 |} \verb+|printf()|
|000014a0| 2b 2c 0d 50 61 67 65 7e | 5c 70 61 67 65 72 65 66 |+,.Page~|\pageref|
|000014b0| 7b 66 6e 3a 72 65 61 64 | 7d 20 5c 76 65 72 62 2b |{fn:read|} \verb+|
|000014c0| 72 65 61 64 28 29 2b 2c | 0d 50 61 67 65 7e 5c 70 |read()+,|.Page~\p|
|000014d0| 61 67 65 72 65 66 7b 66 | 6e 3a 73 70 72 69 6e 74 |ageref{f|n:sprint|
|000014e0| 66 7d 20 5c 76 65 72 62 | 2b 73 70 72 69 6e 74 66 |f} \verb|+sprintf|
|000014f0| 28 29 2b 2c 0d 50 61 67 | 65 7e 5c 70 61 67 65 72 |()+,.Pag|e~\pager|
|00001500| 65 66 7b 66 6e 3a 77 72 | 69 74 65 7d 20 5c 76 65 |ef{fn:wr|ite} \ve|
|00001510| 72 62 2b 77 72 69 74 65 | 28 29 2b 2e 0d 0d 5c 6e |rb+write|()+...\n|
|00001520| 65 77 70 61 67 65 0d 0d | 0d 0d 0d 0d 0d |ewpage..|..... |
+--------+-------------------------+-------------------------+--------+--------+