Chapter Contents |
Previous |
Next |
w.d |
Numeric | |
Width range: | 1- 32 |
Decimal range: | d < w |
Alignment: | right |
CMS specifics: | minimum and maximum values |
Syntax | |
Details | |
See Also |
Syntax |
w.d |
Details |
Use this format to print values without additional formatting. If d is 0 or if it is omitted, the value is written without a decimal point. Negative numbers are written with a leading minus sign.
Numbers written with the w.d format are rounded to the nearest number that can be represented in the output field. If the number is too large to fit, the field is filled with asterisks (*). Under CMS, acceptable values that can be written with the w.d format can range from 5.398E-79 to 7.237E+75.
When choosing w and d values, allow enough space for the decimal point and minus sign if necessary. The following table illustrates the use of the w.d format.
Decimal Number | Format | Data Pattern Written | |
---|---|---|---|
1234 | 4. | 'F1F2F3F4'x | |
1234 | 5. | '40F1F2F3F4'x | |
12345 | 4. | 'F1F2C5F3'x | |
12345 | 5. | 'F1F2F3F4F5'x | |
123.4 | 6.2 | 'F1F2F34BF4F0'x | |
-1234 | 6. | '4060F1F2F3F4'x |
Note:
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.