fun fact: this algorithm can be expanded to parse arbitrary bases (so long as you have a base-N digit to integer conversion)

start on the most significant digit
add it to an accumulator
multiply by the base
move to the next digit
repeat until you run out of digits