Converting from a base less than ten to base ten