[fpc-pascal] Currency and ABS(-674.59)

Flávio Etrusco flavio.etrusco at gmail.com
Tue Mar 6 21:35:19 CET 2012


On Tue, Mar 6, 2012 at 12:11 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 06 Mar 2012, at 13:28, michael.vancanneyt at wisa.be wrote:
>
>> As far as I know, Currency is always a scaled int64, and didn't interpret
>> the
>> request as a request to change that.
>
>
> The problem is that on i386 (and in Delphi on i386), operations on the
> currency type are handled using the fpu.
(...)

This comes as a big surprise to me. I always thought the docs
definition (http://docwiki.embarcadero.com/RADStudio/en/Internal_Data_Formats#The_Currency_type)
implied the FPU wasn't used.
I wonder how that didn't turn out on the rare times I used the
Currency type. I'm glad I never worked with banking/financial systems
:-$

-Flávio



More information about the fpc-pascal mailing list