Diffstat (limited to 'noncore/tools/euroconv/calcdisplay.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/euroconv/calcdisplay.cpp | 40 |
1 files changed, 36 insertions, 4 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 | |||
@@ -173,17 +173,33 @@ double LCDDisplay::Euro2x(int iIndex, double dValue){ | |||
173 | switch (iIndex){ | 173 | switch (iIndex){ |
174 | case 0: // Euro | 174 | case 0: // Euro |
175 | return(dValue); | 175 | return(dValue); |
176 | break; | 176 | break; |
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 | ||
186 | default: | 202 | default: |
187 | return 0; | 203 | return 0; |
188 | }//switch (iIndex) | 204 | }//switch (iIndex) |
189 | }// fct Eur2x | 205 | }// fct Eur2x |
@@ -199,17 +215,33 @@ double LCDDisplay::x2Euro(int iIndex, double dValue){ | |||
199 | switch (iIndex){ | 215 | switch (iIndex){ |
200 | case 0: // Euro | 216 | case 0: // Euro |
201 | return(dValue); | 217 | return(dValue); |
202 | break; | 218 | break; |
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) |
212 | 244 | ||
213 | // we shouldn't come here | 245 | // we shouldn't come here |
214 | return 0; | 246 | return 0; |
215 | 247 | ||