EURTOGRDw.d Format

Converts an amount from euros to Greek drachmas.
Category: Currency Conversion
Alignment: right

Syntax

EURTOGRDw.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 EURTOGRDw.d format converts an amount in euros to an amount in Greek drachmas. The conversion rate is a fixed rate that is incorporated into the EURTOGRDw.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 Greek drachmas.
data _null_; 
   input amount;    
   put amount eurtogrd8.;
   put amount eurtogrd16.2;
   datalines; 
1  
1234.56  
12345 
;
run;
SAS log:
65      put amount eurtogrd8.;
66      put amount eurtogrd16.2;
67      datalines;
     341
          340.89
  420843
       420842.99
 4208225
      4208225.33
Amounts
Statements
Results
 
 
----+----1----2
1
put amount eurtogrd8.;
put amount eurtogrd16.2;
     341
          340.89
1234.56
put amount eurtogrd8.;
put amount eurtogrd16.2; 
  420843
       420842.99
12345
put amount eurtogrd8.;
put amount eurtogrd16.2;
 4208225
      4208225.33