64-bit integer: long, Int64, longint, long long
64-bit signed integer type is used to store negativ or pozitiv whole number. 64-bit integer and his value range: from -9223372036854775808 to 9223372036854775807.long
Description
long
Examples
Example
64-bit integer the possible of use:xmin = -9223372036854775808; ymax = 9223372036854775807;
long x= -82345; // x = -82345
long y = -(1512345 div 70);// y = -21604
y = (long)(x * y); // z = 1778981380
Int64
Description
Int64
Examples
Example
64-bit integer the possible of use:xmin = -9223372036854775808; ymax = 9223372036854775807;
Int64 x= -82345; // x = -82345
Int64 y = -(1512345 div 70);// y = -21604
y = (Int64)(x * y); // z = 1778981380
longint
Description
longint
Examples
FreeBASIC
64-bit integer the possible of use:xmin = -9223372036854775808
ymax = 9223372036854775807
Dim x As longint= -82345 ' x = -82345
Dim y As longint= -(1512345 \ 70)' y = -21604
y = ClngInt((x * y)) ' z = 1778981380
long long
Description
long long
Note: In C like languages the data type size may be different depending on compiler and architecture, we show only one standard look.
Examples
C++
64-bit integer the possible of use:xmin = -9223372036854775808; ymax = 9223372036854775807;
long long x= -82345; // x = -82345
long long y = -(1512345 / 70);// y = -21604
y = (long long)(x * y); // z = 1778981380
You can find it in the following collections: signed integers | integers | numbers | data types
64-bit integer in another programming language: