EUROXw.d Format
Writes numeric values with a leading euro symbol
(€), a period that separates every three digits, and a comma
that separates the decimal fraction.
Category: |
Numeric |
Alignment: |
Right |
Syntax
Arguments
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.
|
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 |
Comparisons
-
The EUROX
w.
d format
is similar to the EURO
w.
d format,
but EURO
w.
d format
reverses the roles of the comma and the decimal point. This convention
is common in English-speaking countries.
-
The EUROX
w.
d format
is similar to the DOLLARX
w.
d format,
except that DOLLARX
w.
d format
writes a leading dollar sign instead of the euro symbol.
Note:
The EUROX
w.d format uses
the euro character (U+20AC). If you use the DBCS version of SAS and
an encoding that does not support the euro character, an error will
occur. To prevent this error, change your session encoding to an encoding
that supports the euro character.
Example
These examples use 1254.71
as the value of amount.
|
|
|
----+----1----+----2----+----3
|
select put(1254.71,eurox10.2);
|
|
select put(1254.71,eurox5.);
|
|
select put(1254.71,eurox9.2);
|
|
select put(1254.71,eurox15.3);
|
|