Int intBase(String str, Int base)
Arguments
str: The string to convertbase: The base the string is in (2-36 inclusive)
Usage
Convert a string, in the given base, to an integer.
str = "101";
bin = intBase(str,2); // 5
oct = intBase(str,8); // 65
dec = intBase(str,10); // 101
hex = intBase(str,16); // 257