Turn a list of digits into a number