Long Integer

What Does Long Integer Mean?

A long integer is a data type in computer science whose range is greater (sometimes even double) than that of the standard data type integer. Depending on the programming language and the computer machine processor, the size of the long integer will vary. In some programming languages, the size of the long integer is standard and fixed across different platforms, while in others, it depends on the processor. There are certain programming languages that do not make use of long integers, but they are used in many programming languages for holding a long range of values, especially during mathematical computations.

Advertisements

Techopedia Explains Long Integer

Like a standard type integer, long integers are represented as a set of binary digits. Long integers can be unsigned (representation of non-negative integers) or signed (representation of negative integers). Most programming language have defined the minimum and maximum value of the integers that can be represented by long integers.

The size of long integers in different programming languages is as followers:

  • ANSI C: Minimum 4 bytes
  • C++: Minimum 4 bytes
  • Visual Basic: Minimum 8 bytes
  • SQL Server: Minimum 8 bytes
  • C#: Minimum 8 bytes
  • VB.Net: Minimum 8 bytes
  • Java: Minimum 8 bytes
  • Pascal: Minimum 8 bytes

Advertisements

Related Terms

Latest Programming Languages Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…