C++ <-> Free Pascal | Explicit conversion to 64-bit integer
C++
explicit conversion to 64-bit integer
Description
( type ) expression
Input
- type - 64-bit integer
- expression - Expressions
Output
- return - 64-bit integer
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++
Explicit conversion to 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
.
Free Pascal Used keywords: int64
Int64
Description
Int64 (expr)
Input
- expr - Any
Output
- return - 64-bit integer
Examples
Free 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
You can find it in the following collections: explicit type conversions
Explicit conversion to 64-bit integer in another programming language:
Differences to: