StringToInt64

Last Updated2026-09-04
Created At2021-06-28

Converts a string to a 64-bit integer.

Notes

If the value is outside the range of representable values, If the value is positive, this function will return INT64_MAX. If the value is negative, this function will return INT64_MIN.

native int StringToInt64(const char[] str, int result[2], int nBase = 10)

Parameters

const char[] str
String to convert.
int[2] result
Array to store the upper and lower 32-bits of the 64-bit integer.
int nBase
Numerical base to use. 10 is default.

Return Value

int Number of characters consumed.