[fpc-pascal] Comp type

Jonas Maebe jonas at freepascal.org
Wed Jan 10 09:04:12 CET 2018

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.


More information about the fpc-pascal mailing list