StringToI64

Last Updated2026-09-04
Created At2026-09-04

Converts a string to an int64 type value.

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 int64 StringToI64(const char[] str, int nBase = 10, int& nConsumed = 0)

Parameters

const char[] str
String to convert.
int nBase
Numerical base to use. 10 is default.
int& nConsumed
Number of characters consumed.

Return Value

int64 int64 conversion of string, or 0 on failure.