Chapter Contents

Previous

Next
WORDFw.

WORDFw.



Writes numeric values as words with fractions that are shown numerically

Category: Numeric
Alignment: left


Syntax
Syntax Description
Details
Comparisons
Examples
See Also

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.


Examples

put price wordf15.; 

Values Results

----+----1----+
2.5
two and 50/100


See Also

Format:

WORDSw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.