The Challenge
Input: alphanumeric string. You can assume that the string will only contain the characters [0-9A-Z]. This can come from a parameter, command line, or STDIN. Digits are always before letters in terms of the base. Think like an extended version of HEX.
Output X,Y
Such that Y
is the minimum base required to parse the string and X
is the decimal value of the input string in that base.
Examples
Input: "1"
Output: 1,2
Input: "HELLOWORLD"
Output: 809608041709942,33
Scoring: This is a golf, so shortest code in bytes wins.
base-conversion
?) \$\endgroup\$