takes a hexadecimal and converts it to a number value