Java - explicit conversion to 64-bit integer

the required type conversion can be carried out as follows:

explicit conversion to 64-bit integer

Description

( type ) expression

Input


Output

Examples

Java

explicit conversion to 64-bit integer the possible of use:
xmin = -9223372036854775808; ymax = 9223372036854775807;
long x= -82345;        // x = -82345
long y = -(1512345 / 70);// y = -21604
y = (long)(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:
Languages: en hu cz sk