Language Reference |
produces a character representation of a numeric matrix
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 following statements produce the matrix , as shown:
a={1 2 3 4}; f=char(a,4,1);
F 1 row 4 cols (character, size 4) 1.0 2.0 3.0 4.0
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.