[fpc-pascal] Comp type
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jan 10 09:10:27 CET 2018
On Wed, 10 Jan 2018 09:04:12 +0100
Jonas Maebe <jonas at freepascal.org> wrote:
> Mattias Gaertner wrote:
> > Comp is Int64 div 10000.
>
> No, that is currency. Comp is a plain 64 bit integer. It originally
> comes from Turbo Pascal, which did not have a regular 64 bit integer
> type. The x87 fpu can be used to perform 64 bit integer math though, so
> it was originally a 64 bit integer type whose calculations were
> performed using the fpu.
>
> In FPC, it's the same on platforms that still use the x87 fpu. On other
> platforms, comp is an alias for the int64 type.
Thanks. Good to know.
I guess I got confused by the 'real' in Darius qeustion.
Mattias
More information about the fpc-pascal
mailing list