Chapter Contents

Previous

Next
Dw.s

Dw.s



Prints variables, possibly with a great range of values, lining up decimal places for values of similar magnitude

Category: Numeric
Alignment: right


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

Dw.s

Syntax Description

w
optionally specifies the width of the output field.
Default: 12
Range: 1-32

s
optionally specifies the significant digits.
Default: 3
Range; 0-16
Requirement: must be less than w


Details

The Dw.s format writes numbers so that the decimal point aligns in groups of values with similar magnitude.


Comparisons


Examples

put @1 x d10.4;

Values Results

----+----1----+----2
12345
   12345.0
1234.5
    1234.5
123.45
 123.45000
12.345
  12.34500
1.2345
   1.23450
.12345
   0.12345


Chapter Contents

Previous

Next

Top of Page

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