Writes numeric values with a period that separates every three
digits and a comma that separates the decimal fraction.
Category: |
Numeric
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
This argument is optional.
Default: |
6 |
Range: |
1-32 |
Tip: |
Make w
wide enough to write the numeric values, the commas, and the optional decimal
point. |
-
d
-
specifies the number of digits to the right
of the decimal point in the numeric value.
Range: |
0-31 |
Requirement: |
must be less than
w |
The COMMAXw.d format writes numeric values with a period that separates
every three digits and with a comma that separates the decimal fraction.
The COMMAw.d format is similar to the
COMMAXw.d format, but the COMMAXw.d format reverses the roles of the decimal point
and the comma.
This convention is common in European countries.
put @10 sales commax10.2;
Value of sales |
Results |
|
----+----1----+----2
|
23451.23
|
23.451,23
|
123451.234
|
123.451,23
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.