explicit conversion to 64-bit integer: ClngInt, Int64, Clng

the required type conversion can be carried out as follows:

explicit conversion to 64-bit integer

Description

( type ) expression

Input


Output

Note: In C like languages the data type size may be different depending on compiler and architecture, we show only one standard look.
compatible programing languages:
C++ | Visual C++ .NET | C# | Java

Examples

Example

explicit conversion to 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

ClngInt

Description

 ClngInt (expr)
Used keywords: clngint

Input


Output

compatible programing languages:
FreeBASIC

Examples

FreeBASIC

explicit conversion to 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

Int64

Description

 Int64 (expr)
Used keywords: int64

Input


Output

compatible programing languages:
Object Pascal | Free Pascal

Examples

Object Pascal

explicit conversion to 64-bit integer the possible of use:
xmin := -9223372036854775808; ymax := 9223372036854775807;
x:= -82345;        // x = -82345
y:= -(1512345 div 70);// y = -21604
y := Int64((x * y));     // z = 1778981380

Clng

Description

 Clng (expr)
Used keywords: clng

Input


Output

compatible programing languages:
Visual Basic .NET

Examples

Visual Basic .NET

explicit conversion to 64-bit integer the possible of use:
xmin = -9223372036854775808
 ymax = 9223372036854775807
Dim x As long= -82345        ' x = -82345
Dim y As long= -(1512345 \ 70)' y = -21604
y = Clng((x * y))     ' z = 1778981380

you can find it in the following collections: explicit type conversions
explicit conversion to 64-bit integer in another programming language:
Languages: en hu cz sk