I have to write a function to convert a float number to hexadecimal. The problem is I don't know how to convert a float number to hexadecimal although I can convert integers. Can anyone help?