Chapter Contents |
Previous |
Next |
Language Reference |
The CHAR function can take one, two, or three arguments. The first argument is the name of a numeric matrix and must always be supplied. The second argument is the field width of the result. If the second argument is not supplied, the system default field width is used. The third argument is the number of decimal positions in the result. If no third argument is supplied, the best representation is used. See also the description of the NUM function, which does the reverse conversion.
For example, the statements
%\xxs NUM function\xe a={1 2 3 4}; f=char(a,4,1);produce the result
F 1 row 4 cols (character, size 4) 1.0 2.0 3.0 4.0
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.