Writes numeric values as words with fractions that are shown numerically.
Category: |
Numeric
|
Alignment: |
left
|
-
w
-
specifies the width of the output field.
Default: |
10 |
Range: |
5-32767 |
The WORDFw.
format converts numeric values to their equivalent in English words, with
fractions that are represented numerically in hundredths. For example, 8.2
prints as eight and 20/100.
Negative numbers are preceded by the word minus. 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 WORDFw.
format is similar to the WORDSw. format except
that WORDFw. prints fractions as numbers instead
of words.
put price wordf15.;
Value of price |
Results |
|
----+----1----+
|
2.5
|
two and 50/100
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.