summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/euroconv/calcdisplay.cpp40
-rw-r--r--noncore/tools/euroconv/currency.h10
2 files changed, 43 insertions, 7 deletions
diff --git a/noncore/tools/euroconv/calcdisplay.cpp b/noncore/tools/euroconv/calcdisplay.cpp
index 1659858..898de81 100644
--- a/noncore/tools/euroconv/calcdisplay.cpp
+++ b/noncore/tools/euroconv/calcdisplay.cpp
@@ -177,9 +177,25 @@ switch (iIndex){
177 177
178 case 1: // FF: French Francs 178 case 1: // FF: French Francs
179 return(dValue*FF); 179 return(dValue*FRF);
180 break; 180 break;
181 181
182 case 2: // DM: Deutch Mark 182 case 2: // DM: Deutch Mark
183 return(dValue*DM); 183 return(dValue*DEM);
184 break;
185
186 case 3: // BEL Belgium Francs
187 return(dValue*BEF);
188 break;
189
190 case 4: // ITL Itialian Lire
191 return(dValue*ITL);
192 break;
193
194 case 5: // LUF Luxemburg
195 return(dValue*LUF);
196 break;
197
198 case 6: // IEP Irish Pound
199 return(dValue*IEP);
184 break; 200 break;
185 201
@@ -203,9 +219,25 @@ switch (iIndex){
203 219
204 case 1: // FF: French Francs 220 case 1: // FF: French Francs
205 return(dValue/FF); 221 return(dValue/FRF);
206 break; 222 break;
207 223
208 case 2: // DM: Deutch Mark 224 case 2: // DM: Deutch Mark
209 return(dValue/DM); 225 return(dValue/DEM);
226 break;
227
228 case 3: // BEL Belgium Francs
229 return(dValue/BEF);
230 break;
231
232 case 4: // ITL Itialian Lire
233 return(dValue/ITL);
234 break;
235
236 case 5: // LUF Luxemburg
237 return(dValue/LUF);
238 break;
239
240 case 6: // IEP Irish Pound
241 return(dValue/IEP);
210 break; 242 break;
211}//switch (iIndex) 243}//switch (iIndex)
diff --git a/noncore/tools/euroconv/currency.h b/noncore/tools/euroconv/currency.h
index d9ee75c..6ca4d09 100644
--- a/noncore/tools/euroconv/currency.h
+++ b/noncore/tools/euroconv/currency.h
@@ -15,6 +15,10 @@
15// 1 Euro equal.... 15// 1 Euro equal....
16#define EURO 1 // Euro 16#define EURO 1 // Euro
17#define FF 6.55957 // French Francs 17#define FRF 6.55957 // French Francs
18#define DM 1.9594 // Deutch Mark 18#define DEM 1.9594 // Deutch Mark
19#define BEF 40.3399 // Belgium Francs
20#define ITL 1936.27 // Italian Lire
21#define LUF 40.3399 // Luxemburg
22#define IEP 0.787564 // Irish Pound
19 23
20static const char* aCurrency[] = { "Euro", "FF", "DM", 0 }; 24static const char* aCurrency[] = { "Euro", "FRF", "DEM", "BEF", "ITL", "LUF", "IEP", 0 };