64 bit integer in pascal
Moderator: Board moderators
64 bit integer in pascal
How to use 64 bit integer in pascal?
-
- New poster
- Posts: 14
- Joined: Tue Nov 12, 2002 6:04 pm
- Location: Bulgaria
-
- Guru
- Posts: 1080
- Joined: Thu Dec 19, 2002 7:37 pm
Or QWord for the unsigned type. Here's the complete list:
The judge uses the -Sd compiler option, so the default 16 bit signed integer type 'Integer' is redefined to be equivalent to the 32 bit signed integer type 'LongInt'. To have the judge's compiler settings at home, either compile with this option, or include the line[pascal]{$MODE DELPHI}[/pascal] at the top of your code. I always use the last method.
For the unsigned 32 bit type you can also use 'DWord' or 'LongWord'.
Code: Select all
signed unsigned
8 bit ShortInt Byte
16 bit SmallInt Word
32 bit LongInt Cardinal
64 bit Int64 QWord
For the unsigned 32 bit type you can also use 'DWord' or 'LongWord'.