Chapter Contents

Previous

Next
w.d

w.d



Reads standard numeric data

Category: Numeric


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

w.d

Syntax Description

w
specifies the width of the input field.
Range: 1-32

d
optionally specifies the power of 10 by which to divide the value. If the data contain decimal points, the d value is ignored.
Range: 0-31


Details

The w.d informat reads numeric values that are located anywhere in the field. Blanks can precede or follow a numeric value with no effect. A minus sign with no separating blank should immediately precede a negative value. The w.d informat reads values with decimal points and values in scientific E-notation, and it interprets a single period as a missing value.


Comparisons


Examples

input @1 x 6. @10 y 6.2;
put x @7 y;

Data Lines Results
----+----1----+----+

23        2300
23    23
  23   2300
23    23
23       -2300
23    -23
23.0       23.
23    23
2.3E1     2.3
23    2.3
-23     0
-23   0


Chapter Contents

Previous

Next

Top of Page

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