Problemi Euro -> lire

Problemi Euro -> lire

Post by Enio Donc » Sat, 24 Nov 2001 05:29:32



Cari amici :

Devo modificare un mio vecchio programma Clipper da un cliente in modo che
esso scriva gli importi in euro e venga fatta la conversione automatica in
Lire, come prescrive la normativa di transizione che scatta dal 1 gennaio
2002 fino al fatidico 28 Febbraio 2002 quando si far tutto esclusivamente
in Euro. Il problema sta in questi termini... Es:

un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.  Adesso se
lui scrive 6.15 euro il corrispondente in euro
di 11.908 Lire il ch non mi sembra affatto corretto. Voi come avete
risolto il problema... esiste un coefficente o qualche trucco per fare
questo. (questo vale anche per VO)

Grazie  per l'aiuto che mi darete !!

Enio Donci

 
 
 

Problemi Euro -> lire

Post by Gary Star » Sat, 24 Nov 2001 06:22:54


Enio,

What erroneous results are you actually seeing? What is the code for the
conversion (in both directions) that you're using?

Are you passing in the period (as you've written them here) as a part of  the
Lire values? In this case, the period is, of course, the decimal separator, and
it might be better to not pass it in?

My understanding is that the conversion rate between the Euro and Lire is fixed;
what is that rate?  I would think that all you need would be a simple pair of
functions, something like

Function Euro2Lire( nEuros as float ) as dword

and

Function Lire2Euro (nLire as dword ) as float

And just use those two functions for every conversion that you need to make.


> Cari amici :

> Devo modificare un mio vecchio programma Clipper da un cliente in modo che
> esso scriva gli importi in euro e venga fatta la conversione automatica in
> Lire, come prescrive la normativa di transizione che scatta dal 1 gennaio
> 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto esclusivamente
> in Euro. Il problema sta in questi termini... Es:

> un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.  Adesso se
> lui scrive 6.15 euro il corrispondente in euro
> di 11.908 Lire il ch non mi sembra affatto corretto. Voi come avete
> risolto il problema... esiste un coefficente o qualche trucco per fare
> questo. (questo vale anche per VO)

> Grazie  per l'aiuto che mi darete !!

> Enio Donci

--
g.
Gary Stark

http://RedbacksWeb.com

 
 
 

Problemi Euro -> lire

Post by Philippe Legro » Sat, 24 Nov 2001 16:23:12


Enio,

Sorry: I don't remember too much my only one year of Italian learning, but
11900 Lire is equal to 6.15 Euros. If you convert 6.15 Euros, you will get
11908 Lire. It is correct for me. The 8 Lire (11908-11900) are normal
'rounding error', and the french law is to create a 'compte d'erreurs
d'arrondi' (something like a 'rounding error account') in your accounting
system, and to create a line to debit/credit for each of these rounding
errors. I am not an accountant, and you may ask to one for the Italian
version of the law...

PhL
PS: Is it possible for you to 'drop' the Lire on the 01/01/2002, and to work
only with Euros? This would make things easier...



Quote:> Cari amici :

> Devo modificare un mio vecchio programma Clipper da un cliente in modo che
> esso scriva gli importi in euro e venga fatta la conversione automatica in
> Lire, come prescrive la normativa di transizione che scatta dal 1 gennaio
> 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto esclusivamente
> in Euro. Il problema sta in questi termini... Es:

> un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.  Adesso
se
> lui scrive 6.15 euro il corrispondente in euro
> di 11.908 Lire il ch non mi sembra affatto corretto. Voi come avete
> risolto il problema... esiste un coefficente o qualche trucco per fare
> questo. (questo vale anche per VO)

> Grazie  per l'aiuto che mi darete !!

> Enio Donci

 
 
 

Problemi Euro -> lire

Post by Graham McKechni » Sat, 24 Nov 2001 16:24:52


Gary,

Well I'm glad you understood that message.

Show off!!!

Regards
Graham


> Enio,

> What erroneous results are you actually seeing? What is the code for the
> conversion (in both directions) that you're using?

> Are you passing in the period (as you've written them here) as a part of
the
> Lire values? In this case, the period is, of course, the decimal
separator, and
> it might be better to not pass it in?

> My understanding is that the conversion rate between the Euro and Lire is
fixed;
> what is that rate?  I would think that all you need would be a simple pair
of
> functions, something like

> Function Euro2Lire( nEuros as float ) as dword

> and

> Function Lire2Euro (nLire as dword ) as float

> And just use those two functions for every conversion that you need to
make.


> > Cari amici :

> > Devo modificare un mio vecchio programma Clipper da un cliente in modo
che
> > esso scriva gli importi in euro e venga fatta la conversione automatica
in
> > Lire, come prescrive la normativa di transizione che scatta dal 1
gennaio
> > 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto
esclusivamente
> > in Euro. Il problema sta in questi termini... Es:

> > un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.
Adesso se
> > lui scrive 6.15 euro il corrispondente in euro
> > di 11.908 Lire il ch non mi sembra affatto corretto. Voi come avete
> > risolto il problema... esiste un coefficente o qualche trucco per fare
> > questo. (questo vale anche per VO)

> > Grazie  per l'aiuto che mi darete !!

> > Enio Donci

> --
> g.
> Gary Stark

> http://RedbacksWeb.com

 
 
 

Problemi Euro -> lire

Post by Gary Star » Sat, 24 Nov 2001 18:05:56


Grum,

Si; gracie.

Buona sera.


> Gary,

> Well I'm glad you understood that message.

> Show off!!!

> Regards
> Graham



> > Enio,

> > What erroneous results are you actually seeing? What is the code for the
> > conversion (in both directions) that you're using?

> > Are you passing in the period (as you've written them here) as a part of
> the
> > Lire values? In this case, the period is, of course, the decimal
> separator, and
> > it might be better to not pass it in?

> > My understanding is that the conversion rate between the Euro and Lire is
> fixed;
> > what is that rate?  I would think that all you need would be a simple pair
> of
> > functions, something like

> > Function Euro2Lire( nEuros as float ) as dword

> > and

> > Function Lire2Euro (nLire as dword ) as float

> > And just use those two functions for every conversion that you need to
> make.


> > > Cari amici :

> > > Devo modificare un mio vecchio programma Clipper da un cliente in modo
> che
> > > esso scriva gli importi in euro e venga fatta la conversione automatica
> in
> > > Lire, come prescrive la normativa di transizione che scatta dal 1
> gennaio
> > > 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto
> esclusivamente
> > > in Euro. Il problema sta in questi termini... Es:

> > > un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.
> Adesso se
> > > lui scrive 6.15 euro il corrispondente in euro
> > > di 11.908 Lire il ch non mi sembra affatto corretto. Voi come avete
> > > risolto il problema... esiste un coefficente o qualche trucco per fare
> > > questo. (questo vale anche per VO)

> > > Grazie  per l'aiuto che mi darete !!

> > > Enio Donci

> > --
> > g.
> > Gary Stark

> > http://RedbacksWeb.com

--
g.
Gary Stark

http://RedbacksWeb.com
 
 
 

Problemi Euro -> lire

Post by Geoff Schalle » Sat, 24 Nov 2001 18:12:51


Lurker!  <g>


Quote:> Gary,

> Well I'm glad you understood that message.

> Show off!!!

> Regards
> Graham

 
 
 

Problemi Euro -> lire

Post by Graham McKechni » Sun, 25 Nov 2001 04:52:14


Gary,

Now how do you expect me to understand that<g>

Graham

> Grum,

> Si; gracie.

> Buona sera.


> > Gary,

> > Well I'm glad you understood that message.

> > Show off!!!

> > Regards
> > Graham



> > > Enio,

> > > What erroneous results are you actually seeing? What is the code for
the
> > > conversion (in both directions) that you're using?

> > > Are you passing in the period (as you've written them here) as a part
of
> > the
> > > Lire values? In this case, the period is, of course, the decimal
> > separator, and
> > > it might be better to not pass it in?

> > > My understanding is that the conversion rate between the Euro and Lire
is
> > fixed;
> > > what is that rate?  I would think that all you need would be a simple
pair
> > of
> > > functions, something like

> > > Function Euro2Lire( nEuros as float ) as dword

> > > and

> > > Function Lire2Euro (nLire as dword ) as float

> > > And just use those two functions for every conversion that you need to
> > make.


> > > > Cari amici :

> > > > Devo modificare un mio vecchio programma Clipper da un cliente in
modo
> > che
> > > > esso scriva gli importi in euro e venga fatta la conversione
automatica
> > in
> > > > Lire, come prescrive la normativa di transizione che scatta dal 1
> > gennaio
> > > > 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto
> > esclusivamente
> > > > in Euro. Il problema sta in questi termini... Es:

> > > > un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.
> > Adesso se
> > > > lui scrive 6.15 euro il corrispondente in euro
> > > > di 11.908 Lire il ch non mi sembra affatto corretto. Voi come
avete
> > > > risolto il problema... esiste un coefficente o qualche trucco per
fare
> > > > questo. (questo vale anche per VO)

> > > > Grazie  per l'aiuto che mi darete !!

> > > > Enio Donci

> > > --
> > > g.
> > > Gary Stark

> > > http://RedbacksWeb.com

> --
> g.
> Gary Stark

> http://RedbacksWeb.com

 
 
 

Problemi Euro -> lire

Post by Gary Star » Sun, 25 Nov 2001 05:53:37


Grum,


> Gary,

> Now how do you expect me to understand that<g>

Me expect you to understand something ??

Come on .... <g>

> Graham


> > Grum,

> > Si; gracie.

> > Buona sera.


> > > Gary,

> > > Well I'm glad you understood that message.

> > > Show off!!!

> > > Regards
> > > Graham



> > > > Enio,

> > > > What erroneous results are you actually seeing? What is the code for
> the
> > > > conversion (in both directions) that you're using?

> > > > Are you passing in the period (as you've written them here) as a part
> of
> > > the
> > > > Lire values? In this case, the period is, of course, the decimal
> > > separator, and
> > > > it might be better to not pass it in?

> > > > My understanding is that the conversion rate between the Euro and Lire
> is
> > > fixed;
> > > > what is that rate?  I would think that all you need would be a simple
> pair
> > > of
> > > > functions, something like

> > > > Function Euro2Lire( nEuros as float ) as dword

> > > > and

> > > > Function Lire2Euro (nLire as dword ) as float

> > > > And just use those two functions for every conversion that you need to
> > > make.


> > > > > Cari amici :

> > > > > Devo modificare un mio vecchio programma Clipper da un cliente in
> modo
> > > che
> > > > > esso scriva gli importi in euro e venga fatta la conversione
> automatica
> > > in
> > > > > Lire, come prescrive la normativa di transizione che scatta dal 1
> > > gennaio
> > > > > 2002 fino al fatidico 28 Febbraio 2002 quando si far tutto
> > > esclusivamente
> > > > > in Euro. Il problema sta in questi termini... Es:

> > > > > un prezzo che egli inserisce di  L. 11.900  equivale a 6.15 euro.
> > > Adesso se
> > > > > lui scrive 6.15 euro il corrispondente in euro
> > > > > di 11.908 Lire il ch non mi sembra affatto corretto. Voi come
> avete
> > > > > risolto il problema... esiste un coefficente o qualche trucco per
> fare
> > > > > questo. (questo vale anche per VO)

> > > > > Grazie  per l'aiuto che mi darete !!

> > > > > Enio Donci

> > > > --
> > > > g.
> > > > Gary Stark

> > > > http://RedbacksWeb.com

> > --
> > g.
> > Gary Stark

> > http://RedbacksWeb.com

--
g.
Gary Stark

http://RedbacksWeb.com