Node:Integer, Next:interface, Previous:Int, Up:Reference
type Integer { built-in type }
Integer
is the "natural" signed integer type in GNU Pascal.
On most platforms it is 32 bits wide and thus has a range of
-2147483648 .. 2147483647
. Use it whenever you need a
general-purpose signed integer type.
Integer
in GNU Pascal is compatible to Int
in GNU C.
There are lots of other integer types in GPC, see Integer Types.
In ISO Pascal, Integer
is the only built-in integer type.
(However see Subrange Types.)
program IntegerDemo; var a: Integer; begin a := 42; WriteLn (a) end.