EURTOESPw.d Format

Converts an amount from euros to Spanish peseta.
Category: Currency Conversion
Alignment: right

Syntax

EURTOESPw.d

Syntax Description

w
specifies the width of the output field.
Default:6
d
specifies the number of digits to the right of the decimal point in the numeric value.

Details

The EURTOESPw.d format converts an amount in euros to an amount in Spanish peseta. The conversion rate is a fixed rate that is incorporated into the EURTOESPw.d format and the EUROCURR function. For more information about European currency conversion and currency conversion rate tables, see Currency Representation.

Example

The following table shows input values in euros, SAS statements, and the conversion results in Spanish peseta.
data _null_; 
   input amount;    
   put amount eurtoesp8.;
   put amount eurtoesp12.2;
   datalines; 
1  
1234.56  
12345 
;
run;
26      put amount eurtoesp8.;
27      put amount eurtoesp12.2;
28      datalines;
     166
      166.39
  205414
   205413.50
 2054035
  2054035.17
Amounts
Statements
Results
----+----1----2
1
put amount eurtoesp8.;
put amount eurtoesp12.2;
166
      166.39
1234.56
put amount eurtoesp8.;
put amount eurtoesp12.2;
205414
205413.50
12345
put amount eurtoesp8.;
put amount eurtoesp12.2;
2054035
2054035.17