int64

Attempts to convert a value into a 64bit integer.

Syntax:

int64(val);


Argument Description
val The value to convert.


Returns: 64bit integer


Description

This function will attempt to convert a given value into a 64bit integer, where the value must be either a real, a string, an int64, an int32, or a ptr. Anything else will cause the game to crash with an error message. You can check to see if a variable holds an int64 using the function is_int64.


Example:

steam_handle = int64(global.fileReadString);

The above code converts the value held in the global variable to a 64bit integer.


Back: Real Number Functions
Next: exp
© Copyright YoYo Games Ltd. 2018 All Rights Reserved