Any way to convert an int or a float to hexadecimal?

Could you please show me how?