EURTOCHFw.d Format

Converts an amount from euros to Swiss francs.
Category: Currency Conversion
Alignment: right

Syntax

EURTOCHFw.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 EURTOCHFw.d format converts an amount in euros to an amount in Swiss francs. The conversion rate is a changeable rate that is incorporated into the EURTOCHFw.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 Swiss francs.
data _null_; 
   input amount;    
   put amount eurtochf6.;
   put amount eurtochf12.2;
   datalines; 
1  
1234.56  
12345 
;
run;
SAS log:
8       put amount eurtochf6.;
9       put amount eurtochf12.2;
10      datalines;
     2
        1.60
  1981
     1980.60
 19805
    19805.08
Amounts
Statements
Results
 
 
----+----1----2
1
put amount eurtochf6.;
put amount eurtochf12.2;
     2
        1.60
1234.56
put amount eurtochf6.;
put amount eurtochf12.2; 
  1981
     1980.60
12345
put amount eurtochf6.;
put amount eurtochf12.2;
 19805
    19805.08