Updated t_NUM_hexadecimal function.