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

Yes there is. You just have to implement it.