EURTODKKw.d Format

Converts an amount from euros to Danish kroner.
Category: Currency Conversion
Alignment: right

Syntax

EURTODKKw.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 EURTODKKw.d format converts an amount in euros to an amount in Danish kroner. The conversion rate is a changeable rate that is incorporated into the EURTODKKw.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 Danish kroner.
data _null_; 
   input amount;    
   put amount eurtodkk6.;
   put amount eurtodkk12.2;
   datalines; 
1  
1234.56  
12345 
;
run;
SAS log:
62      put amount eurtodkk6.;
63      put amount eurtodkk12.2;
64      datalines;
     7
        7.49
  9247
     9246.97
 92465
    92465.16
Amounts
Statements
Results
 
 
----+----1----2
1
put amount eurtodkk6.;
put amount eurtodkk12.2;
     7
        7.49
1234.56
put amount eurtodkk6.;
put amount eurtodkk12.2; 
  9247
     9246.97
12345
put amount eurtodkk6.;
put amount eurtodkk12.2;
 92465
    92465.16