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.
|Programming language||Platforms||Data type name||Storage in bytes||Range (Signed)||Range (Unsigned)|
|C and C++||Unix, 32-bit||long||4||−2,147,483,648 to 2,147,483,647||0 to 4,294,967,295|
|VB||Windows||Long||8||-9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||0 to 18,446,744,073,709,551,615|
|VBA||Windows, Mac OS||Long||4||−2,147,483,648 to 2,147,483,647||N/A|
|SQL Server||Windows||BigInt||8||−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||0 to 18,446,744,073,709,551,615|
|.NET CLR/CTS||Windows||Long or Int64||8||−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||0 to 18,446,744,073,709,551,615|
|Java||Java platform||long||8||−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||N/A|
|Pascal||Windows||longint or int64||8||−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||N/A|
|Bash||Windows , Unix, Mac OS||long||8 (presumably)||-9,223,372,036,854,775,808 to +9,223,372,036,854,775,807||N/A|
|Python||Windows , Unix, Mac OS||long||Not fixed||Unlimited||Unlimited|
|MATLAB||Windows, Unix, Linux, Mac OS||int32||4||−2,147,483,648 to +2,147,483,648||0 to 4,294,967,295|
Wipo Publishes Patent of Loctronix for "Gnss Long-Code Acquisition, Ambiguity Resolution and Signal Validation" (American Inventors)
Nov 22, 2013; GENEVA, Nov. 22 -- Publication No. WO/2013/173800 was published on Nov. 21.Title of the invention: "GNSS LONG-CODE ACQUISITION,...
US Patent Issued to Sprint Spectrum on March 5 for "Pn Long Code Shift for Access Attempt" (Kansas Inventors)
Mar 09, 2013; ALEXANDRIA, Va., March 9 -- United States Patent no. 8,391,412, issued on March 5, was assigned to Sprint Spectrum LP (Overland...
Application No. 1572/MUMNP/2009 Published on May 14, Assigned to LG Electronics for Network Public Long Code Mask Assigning Apparatus, Method (Korean Inventors)
May 20, 2010; MUMBAI, India, May 20 -- Jong Hoe An, Chan Ho Kyung and Kyoo Jin Han, all from Republic of Korea, have developed an apparatus and...
Patent No. 7,561,556 Issued on July 14, Assigned to LG Electronics for Public Long Code Mask Generation Method (South Korean Inventors)
Jul 18, 2009; ALEXANDRIA, Va., July 18 -- Jong Hoe An of Kyonggi-do, South Korea, and Chan Ho Kyung of Incheon, South Korea, have developed a...