Writes numeric values as words.
Category: |
Numeric
|
Alignment: |
left
|
-
w
-
specifies the width of the output field.
Default: |
10 |
Range: |
5-32767 |
You can use the WORDSw.
format to print checks with the amount written out below the payee line.
Negative numbers are preceded by the word minus. If
the number is not an integer, the fractional portion is represented as hundredths.
For example, 5.3 prints as five and thirty hundredths. When the value's equivalent
in words does not fit into the specified field, it is truncated on the right
and the last character prints as an asterisk.
The WORDSw.
format is similar to the WORDFw. format except
that WORDSw. prints fractions as words instead
of numbers.
put price words23.;
Value of price |
Results |
|
----+----1----+----2----+
|
2.1
|
two and ten hundredths
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.