Page 1 of 1
64 bit integer in pascal
Posted: Sat Feb 01, 2003 8:46 pm
by PMNOX
How to use 64 bit integer in pascal?
Posted: Sun Feb 02, 2003 8:18 pm
by Jordan Gordeev
The Judge's Pascal compiler (Free Pascal) has 64-bit signed integer type called Int64
Posted: Tue Feb 04, 2003 10:34 pm
by little joey
Or QWord for the unsigned type. Here's the complete list:
Code: Select all
signed unsigned
8 bit ShortInt Byte
16 bit SmallInt Word
32 bit LongInt Cardinal
64 bit Int64 QWord
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'.