The systems developer's guide to the Euro

1 Conversation

1.What is the Euro/EMU?

On January 1st 1999, 11 currencies1 fixed their exchange rates against a new currency unit - the euro.

The fixed rates are:

1Euro is
40.3399Belgian franc
1.95583German mark
166.386Spanish peseta
6.55957French franc
0.787564Irish pounds
1936.27Italian lira
40.3399Luxembourg franc
2.20371Dutch guilder
13.7603Austrian schilling
200.482Portuguese escudo
5.94573Finnish markka
340.750Greek Drachma

This was phase 1 of the European Monetary Union (EMU) and the birth of the currency called the Euro.

On January 1st 2002 the currencies listed above will cease to exist. This means that all transactions, prices and values expressed in these currencies must be converted such that they are expressed in Euros.

2. Conversion rules

2.1 Single rate: The rule is that the above rate must be used regardless of whether you are converting to or from Euros - the inverse rate may not be used. Thus, to convert from Irish pounds to Euro, divide by 0.787564. To convert from Euro to Irish pounds, multiply by .787564

2.2 Precision: Six digit precision must be used in all Euro conversions.

2.3 Rounding: After conversion to Euros, the result must be rounded to the nearest cent. A cent is one hundredth of a Euro - thus the post conversion precision is 2 digits.

2.4 Triangulation: All currency conversions to or from a member currency must be converted through the euro - this process is known as triangulation. Thus, to convert from Deutchmarks to US dollars, an amount must first be converted to Euros (according to rules 2.1 to 2.3) and then this resulting amount converted to US dollars.

3. Practical considerations for developers

These rules lead to the following practical considerations:

3.1 Storing the conversion rates: The rates above are fixed and immutable. This means that you can hard code them in a program if this suits your development environment (although it is probably better to store them in a database table to allow them to be accessed elsewhere). However you store the rate, however, the data type of the variable must allow 6-digit precision.

3.2 Performing the conversion: As above, any interim store, variable or function used to perform a Euro conversion must be capable of at least six digits of precision. In Visual Basic (and by extension, Visual basic for Applications) this means that you must not store any calculations as a Currency, Integer or Long Integer variable types and that conversions to/from these data types must not be part of the conversion routine. In SQL, the data types MONEY and SMALLMONEY must be avoided.

3.3 Post conversion rounding: Rounding is to two digits, where anything with a third significant digit of less than 5 is rounded down and 5 or more than 5 is rounded up. For the most part any system defined conversion 2 will already do this - but you should check any rounding functions (implicit or explicit) in your programs.

3.4 Triangulation: The currencies within the euro zone (noted above) should be known to your systems and any conversion to or from them should be done in two steps. 1st convert to Euros, 2nd convert to your target currency.

3.5 Timetable: Like Y2K, this is another IT problem with a hard deadline. If your systems are not Euro enabled by Jan 1st 2002 you will not be able use them to trade in the Euro zone. If you aren't working on this right now, get started.

1The Greek Drachma joined later2e.g. CONVERT(MONEY,@value) in SQL or Format$(vValue,"Fixed") in Visual Basic

Bookmark on your Personal Space


Entry

A517637

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more