~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/programming/format.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH format 1 "April 1993" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
format - number printing and display format
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
format([type],[long])
 
8
format()
 
9
.fi
 
10
.SH PARAMETERS
 
11
.TP 10
 
12
type 
 
13
: character string
 
14
.TP 10
 
15
long
 
16
: integer ( max number of digits (default 10))
 
17
.SH DESCRIPTION
 
18
Sets the current printing format with the parameter \fVtype\fR ; it is one of the following :
 
19
.TP
 
20
"v"
 
21
: for a variable format (default)
 
22
.TP
 
23
"e"
 
24
: for the  e-format.
 
25
.LP
 
26
\fVlong\fR defines the max number of digits (default 10).
 
27
\fVformat()\fR returns a vector for the current format:
 
28
first component is the type of format (0 if \fVv\fR ; 1 if \fVe\fR );
 
29
second component is the number of digits.
 
30
.LP
 
31
In "variable format" mode, vectors entries which are less than %eps
 
32
times the maximum absolute value of the entries were displayed as "0"
 
33
in the previous Scilab versions. It is no more the case, the clean
 
34
function can be used to set neglitible entries to zeros.
 
35
.SH EXAMPLE
 
36
.nf
 
37
x=rand(1,5);
 
38
format('v',10);x
 
39
format(20);x
 
40
format('e',10);x
 
41
format(20);x
 
42
 
 
43
x=[100 %eps];
 
44
format('e',10);x
 
45
format('v',10);x
 
46
 
 
47
format()
 
48
.fi
 
49
.SH SEE ALSO
 
50
write, disp, print
 
51