Chapter Contents |
Previous |
Next |
w.d |
Category: | Numeric |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
w.d |
Range: | 1-32 |
Tip: | Allow enough space to write the value, the decimal point, and a minus sign, if necessary. |
Range: | 0-31 |
Tip: | If d is 0 or you omit d, w.d writes the value without a decimal point. |
Details |
The w.d format rounds to the nearest number that fits in the output field. If w.d is too small, SAS may shift the decimal to the BESTw. format. The w.d format writes negative numbers with leading minus signs. In addition, w.d right aligns before writing and pads the output with leading blanks.
Comparisons |
Examples |
put @7 x 6.3;
Values | Results |
---|---|
----+----1----+ |
|
23.45 |
23.450 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.