WORDFw. Format

Writes numeric values as words with fractions that are shown numerically.
Category: Numeric
Alignment: left

Syntax

WORDFw.

Syntax Description

w
specifies the width of the output field.
Default:10
Range:5–32767

Details

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.

Comparisons

The WORDFw. format is similar to the WORDSw. format except that WORDFw. prints fractions as numbers instead of words.

Example

put price wordf15.; 
Value of price
Result
 
----+----1----+
2.5
two and 50/100

See Also

Formats: