Int64 Type
Use Int64
instead of the Comp
type. Int64
does not depend on the floating-point
unit or the precision set in the floating-point control word. Also,
Int64
supports integer operators such as
shl
or shr
.
An integer constant whose value is too large for the
Integer
type automatically has type
Int64
.
All the usual integer functions (e.g., IntToStr
)
have overloaded versions to support Integer
and
Int64
arguments.
If you write your own routines that work with the
Integer
type, consider writing overloaded versions
that use Int64
. For example, if you write
IntToBinary
to convert an integer to a string of
'0'
and '1'
characters, write
two overloaded functions: one that takes an
Integer
argument and one that takes an
Int64
argument.