[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.144 LongInt

### Synopsis

    type
      LongInt  { built-in type }

### Description

``LongInt'` is a signed integer type which is longer than ``Integer'`. On most platforms it is 64 bits wide and thus has a range of ``-9223372036854775808..9223372036854775807'`.

``LongInt'` in GNU Pascal is compatible to ``long long int'` in GNU C.

There are lots of other integer types in GPC, see section 8.2.3 Integer Types.

### Conforming to

``LongInt'` is a Borland Pascal extension. Borland Pascal defines ``LongInt'` as a 32-bit signed integer type (section 9.125 Integer in GNU Pascal).

### Example

    program LongIntDemo;
    var
      a: LongInt;
    begin
      a := 42;
      WriteLn (a)
    end.

### See also

section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html