On Tue, 1 Jan 2008, Lee Jenkins wrote:
>
> I have a method of a class such as:
>
> function TMyObject.Test(ACurrency: Currency)
> begin
> // do some stuff
> end;
>
> Now, I'll call this method like:
>
> MyObject.Test(0.23);
>
> The problem is that inside the Test method, the current type is converted to
> an integer like 2300.
How is this done ?
Currency is actually an int64 type, with a scale factor of 10.000, so
this is normal. What is not normal is that you see it in your code.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives