The following example
shows the conversion from Belgian francs to euros. The EURFRBEF format
divides the country's currency amount by the exchange rate:
CurrencyAmount / ExchangeRate
12345 / 40.3399
Example Code: Conversion from Belgian Francs to Euros
data _null_
x=12345 /*convert from Belgian francs to euros*/
put x eurfrbef15.2;
run;
The following example
shows the conversion of euros to Belgian francs. The EURTOBEF format
multiplies euros by the target currency's exchange rate:
EurosAmount * ExchangeRate
12345 * 40.3399
data _null_
x=12345; /*convert from euros to Belgian francs*/
put x eurtobef15.2;
run;