binary to decimal algorithm

using MOD how would I do this??
input 110
input base 2

print 6

im really lost :(
The algorithm to transform numbers between bases has been widely covered in the Internet. Google it up. I know for a fact that can be found in less than 10 minutes, but even if it took you 1 hour, it would be a short time.
Topic archived. No new replies allowed.