Formats for NLS |
Category: | Numeric |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Examples |
Syntax |
NLBESTw. |
specifies the width of the output field.
Default: | 12 |
Tip: | If you print numbers between 0 and .01 exclusively, then use a field width of at least 7 to avoid excessive rounding. If you print numbers between 0 and -.01 exclusively, then use a field width of at least 8. |
Range: | 1-32 |
Details |
The NLBEST format writes the best numerical value based on the locale's decimal point and the sign mark's location. NLBEST is similar to the BEST format. For more information, see the BEST format in the SAS Language Reference: Dictionary.
Examples |
The following code produces results based on the locale:
x=-1257000 put x nlbest6.; put x nlbest3.; put "====="; x=-0.1 put x nlbest6.; put x nlbest3.; put "====="; x=0.1 put x nlbest6.; put x nlbest3.; put "====="; x=1257000 put x nlbest6.; put x nlbest3.;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.