~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/fileio/printf.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH printf 1 "May 1994" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
printf - Emulator of C language printf function
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
printf(format,value_1,..,value_n)
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP 10
11
 
format
12
 
: a Scilab string. Specifies a character string combining literal characters with conversion
13
 
specifications.
14
 
.TP
15
 
value_i
16
 
: Specifies the data to be converted according to the format parameter.
17
 
.TP
18
 
str
19
 
: column vector of character strings
20
 
.TP
21
 
file
22
 
: a Scilab string specifying a file name or a logical unit number (see \fVfile\fR)
23
 
.SH DESCRIPTION
24
 
The \fVprintf\fR function converts, formats, and writes its
25
 
\fVvalue\fR parameters, under control of the \fVformat\fR parameter,
26
 
to the standard output.
27
 
.PP
28
 
The \fVformat\fR parameter is a character string that contains two
29
 
types of objects:
30
 
.TP 10
31
 
Literal characters
32
 
: which are copied to the output stream.
33
 
.TP
34
 
Conversion specifications
35
 
: each of which causes zero or more items
36
 
to be fetched from the \fVvalue\fR parameter list. see
37
 
\fVprintf_conversion\fR for details
38
 
.PP
39
 
 
40
 
If any \fVvalue\fRs remain after the entire \fVformat\fR has been
41
 
processed, they are ignored.
42
 
 
43
 
.SH EXAMPLES
44
 
.nf
45
 
printf('Result is:\\nalpha=%f",0.535)
46
 
.fi
47
 
.SH SEE ALSO
48
 
string, print, write, format, disp, file, fprintf, sprintf
49
 
 
50
 
 
51