S2I

Parameters
s string

The string to be converted

comment

Converts a string of digits to the represented number. Returns 0 in case of an error.

note

If the input string starts with some valid input but ends in invalid input this will return the conversion of the valid part: S2I("123asd") == 123.

note

This function only works for decimal strings. Hexadecimal or octal strings are not supported.

pure
This function is pure. For the same values passed to it, it will always return the same value.
return type
integer
Source code
native S2I  takes string s returns integer
Source
string.j
wc3modding.com
S2I