Chapter Contents

Previous

Next
BESTw.

BESTw.


SAS chooses the best notation

Category: Numeric
Alignment: right


Syntax
Syntax Description
Details
Examples

Syntax

BESTw.

Syntax Description

w
specifies the width of the output field.
Default: 12
Tip: If you print numbers between 0 and .01 exclusive, use a field width of at least 7 to avoid excessive rounding. If you print numbers between 0 and -.01 exclusive, use a field width of at least 8.
Range: 1-32


Details

The BESTw. format is the default format for writing numeric values. When there is no format specification, SAS chooses the format that provides the most information about the value according to the available field width. SAS always stores the complete value regardless of the format that you use to represent it.


Examples


put @1 x best6.;
put @1 x best3.;

Values Results


----+----1----+----2

1257000

1.26E6


1E6


Chapter Contents

Previous

Next

Top of Page

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