Next: writedata() Up: MacAnova Help File Previous: workspace   Contents

write()

Usage:
write(a, b, ...[,format:Fmt or nsig:m, header:F, labels:F, notes:T,\
  width:w, height:h, macroname:T, missing:missStr, name:setName]\
  [, file:fileName [,new:T]]]), Fmt, missStr, fileName, setName
  CHARACTER scalars, m > 0, w >= 30, h >= 12 integers



Keywords: output, files
                                  Usage
write(a, b, ...) prints objects (variables, expressions, macros) a, b,
..., ordinarily retaining more decimal places than print().  By default,
write() formats REAL items using the format identified by 'wformat' on
getoptions() output.  By default this specifies 9 significant digits in
floating point form but may be changed by setoptions().

Except for using a different default format, write() is identical with
print(), and recognizes the same keywords.  It is provided as an easy
way to print results with more significant digits than does print(),
without having explicitly to specify a format.  See print() for a full
description of the various keywords and output.

  Cmd> print(PI*run(5))
  VECTOR:
  (1)      3.1416      6.2832      9.4248      12.566      15.708

  Cmd> write(PI*run(5))
  VECTOR:
  (1)       3.14159265       6.28318531       9.42477796
  (4)       12.5663706       15.7079633

When either of keywords 'nsig' or 'format' are used, write() behaves
identically to print().

                            Cross references
See also topics setoptions(), matprint(), matwrite(), macrowrite(),
'options'.


Gary Oehlert 2006-01-30