LassoScript Utility
Basics Browse Detail

[Math_ConvertEuro]

Tag Link [Math_ConvertEuro] Category Math
Type Substitution Source Available Yes
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Decimal or Integer Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Math_ConvertEuro] converts an amount using the fixed exchange rate between a European Union member country's traditional currency and the Euro.

This tag can be used in two ways:

With a -EuroFrom parameter the tag converts the decimal parameter from the specified country's traditional currency to the Euro.

With a -EuroTo parameter the tag converts the decimal parameter from the Euro to the specified country's traditional currency.

The possible country codes and associated conversion rates are as follows. The conversion rate listed is the number of each currency for one Euro, e.g. 40.3399 Belgian Francs per Euro.

BEF Belgian Franc 40.3399
DEM German Mark 1.95583
ESP Spanish Peseta 166.386
FRF French Franc 6.55957
IEP Irish Pound 0.787564
ITL Italian Lire 1.93627
LUF Luxembourg Franc 40.3399
NLG Dutch Guilder 2.20371
ATS Austrian Schilling 13.7603
PTE Portuguese Escudo 200.482
FIM Finnish Mark 5.94573

Note: This tag cannot be used to perform conversions with any other countries. The values for the conversion rates are set to the fixed values that were established when the Euro was introduced.

Syntax

[Math_ConvertEuro: Currency Amount, -EuroTo='Code']

[Math_ConvertEuro: Currency Amount, -EuroFrom='Code']

Parameters

Required Parameters
Currency Amount The amount of currency to be converted.
Optional Parameters
-EuroTo The country currency to convert the currency amount to.
-EuroFrom The country currency to convert the currency from.

Examples

To convert French Francs to Euros:

Use the [Math_ConvertEuro] tag. The following example, converts 100 French Francs into Euros and displays the result.

[Math_ConvertEuro-EuroFrom='FRF', 100.00]

15.244902