Converts a string in the specified base to a decimal number
The string to convert
The base of the input string (2-36)
The decimal representation as a number
Error if base is out of range or if input is invalid
Converts a string in the specified base to a decimal number