Write a code to convert an ASCII representation of a positive integer to it's numeric value.
Anonymous
why don't you just go $mask = 1; and then in your loop $sum += ($intMap[$s[$i]] * $mask); $mask *= 10; instead of doing the whole to the power and then rounding down...
Check out your Company Bowl for anonymous work chats.