Convert number to hex