Node:Comp, Next:Complex, Previous:Cmplx, Up:Reference

### Comp

#### Synopsis

    type
      Comp = LongInt;

#### Description

`Comp` 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`.

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

#### Conforming to

`Comp` is a Borland Pascal extension.

In some contexts, Borland Pascal treats `Comp` as a "real" type - this behaviour is not supported by GPC.

#### Example

    program CompDemo;
    var
      a: Comp;
    begin
      a := 42;
      WriteLn (a)
    end.

#### See also

Integer Types, Subrange Types.