Previous Page | Next Page

Formats

BESTw. Format



SAS chooses the best notation.
Category: Numeric
Alignment: right
See: BESTw. Format under z/OS

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

BESTw.

Syntax Description

w

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

When a format is not specified for writing a numeric value, SAS uses the BESTw. format as the default format. The BESTw. format writes numbers as follows:

SAS stores the complete value regardless of the format that is used.


Comparisons


Examples

The following statements produce these results.

SAS Statements Results

----+----1----+----2
x=1257000;
put x best6.;
 
1.26E6
x=1257000;
put x best3.;
 
1E6


See Also

Format:

BESTDw.p Format

Previous Page | Next Page | Top of Page