Name
Int64 Type
Syntax
type Int64 = -9223372036854775808..9223372036854775807;
Description
The
Int64 type is a 64-bit signed integer type.
Tips and Tricks
Use
Int64instead of theComptype.Int64does not depend on the floating-point unit or the precision set in the floating-point control word. Also,Int64supports integer operators such asshlorshr.An integer constant whose value is too large for the
Integertype automatically has typeInt64.All the usual integer functions (e.g.,
IntToStr) have overloaded versions to supportIntegerandInt64arguments.If you write your own routines that work with the
Integertype, consider writing overloaded versions that useInt64. For example, if you writeIntToBinaryto convert an integer to a string of'0'and'1'characters, write two overloaded functions: one that takes anIntegerargument and one that takes anInt64argument.There is no 64-bit unsigned integer type.
See Also
| Integer Type |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access