Long integer

Long integer

In computer science, a long integer is a data type that can represent a whole number which may have a larger range, while taking more storage, compared with a standard integer on the same machine.

In C, it is denoted by long. A long integer is often double the size of a standard integer, but this relation may not be correct. It is "often" a 32-bit integer, although it could be larger, for example, 64 bits. A conforming program can assume that it can safely store values between −(231-1) and 231-1, but it may not assume that the range isn't larger. In Java and C#, a long is "always" a 64-bit integer.

In later versions of the C programming language, a long long type is supported that doubles the capacity of the standard long to 64 bits. This type is not supported by compilers that require C code to be C++ ISO compliant, because the long long type does not exist in C++.

A variable defined as a long integer in one programming language may be different in size to a similarly defined variable in another. In some languages this size is fixed across platforms, whilst in others it is machine dependent. In some languages this data type does not exist at all.

Common sizes

ee also

* computer numbering formats
* integer
* short integer


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • long integer — ilgasis sveikasis skaičius statusas T sritis informatika apibrėžtis Sveikasis skaičius, kuriam skiriama daugiau vietos (skilčių) atmintyje ir dėl to jis gali būti didesnis negu įprastas. Paprastai kompiuteryje skiriama 64 bitai, dvigubai daugiau… …   Enciklopedinis kompiuterijos žodynas

  • Integer (computer science) — In computer science, an integer is a datum of integral data type, a data type which represents some finite subset of the mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values …   Wikipedia

  • integer — moralisch einwandfrei; unbestechlich; nicht käuflich; nicht korrupt * * * in|te|ger 〈Adj.〉 1. unversehrt, unberührt 2. rein, makellos, rechtschaffen, redlich ● ein integrer Charakter [lat., „unberührt, unversehrt“] * * * in|te|ger <Adj.; …grer …   Universal-Lexikon

  • Long — In general English usage, long is the adjectival form of length. It may also refer to:In geography: * Long, People s Republic of China * Long Island, New York, United States * Long Lake, various lakesIn other fields: * Lóng, the Chinese dragon *… …   Wikipedia

  • long — 1. adjective /lɒŋ,lɔŋ,lɑŋ/ a) Having much distance from one terminating point on an object or an area to another terminating point . Its a long way from the Earth to the Moon. b) Having great duration. The pyramids of Egypt have been around for a …   Wiktionary

  • Long — steht für: Long (Familienname), der Familienname Long den Kreis Long in Baoji in der chinesischen Provinz Shaanxi, siehe Long (Baoji) Long (Mythologie), eine Drachenfigur in der chinesischen Mythologie Long und Short, eine Käufer Position in der… …   Deutsch Wikipedia

  • Integer (Datentyp) — Mit Integer (ˈɪnteːɡɐ oder ˈɪntɪdʒə, englisch für ganze Zahl von lat. numerus integer) wird in der Informatik ein Datentyp bezeichnet, der ganzzahlige Werte speichert. Der Wertebereich ist endlich. Berechnungen mit Integern sind in der Regel… …   Deutsch Wikipedia

  • Integer — This article is about the mathematical concept. For integers in computer science, see Integer (computer science). Symbol often used to denote the set of integers The integers (from the Latin integer, literally untouched , hence whole : the word… …   Wikipedia

  • Integer overflow — In computer programming, an integer overflow occurs when an arithmetic operation attempts to create a numeric value that is larger than can be represented within the available storage space. For instance, adding 1 to the largest value that can be …   Wikipedia

  • Long division — For the album by Rustic Overtones, see Long Division.In arithmetic, long division is the standard procedure suitable for dividing simple or complex multidigit numbers. It breaks down a division problem into a series of easier steps. As in all… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”