Writes numeric values with a leading euro symbol (E), 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.
Default: |
6 |
Range: |
1-32 |
Tip: |
If you want the euro symbol to be part of
the output, be sure to choose an adequate width. See
Examples. |
- d
-
specifies the number of digits to the right of the decimal
point in the numeric value.
Default: |
0 |
Range: |
0-31 |
Requirement: |
must be less than w |
-
The EUROXw.d
format is similar to the EUROw.d format, but EUROw.d format reverses the roles of
the comma and the decimal point.
This convention is common in English-speaking countries.
-
The EUROXw.d
format is similar to the DOLLARXw.d format, except that DOLLARXw.d format writes a
leading dollar sign instead of the euro symbol.
These examples use 1254.71 as the value of amount.
Statements |
Results |
|
----+----1----+----2----+----3
|
put amount eurox10.2;
|
E1.254,71
|
put amount eurox5.;
|
1.255
|
put amount eurox9.2;
|
E1.254,71
|
put amount eurox15.3;
|
E1.254,710
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.