How to safely and reasonably convert a float or double to string or char array?

alirezasafdari:
Any suggestions are appreciated.

I'm watching this thread, my interest is just academic.

I have to say though, I'm trying to understand why it is you would need this. I admit that I really couldn't understand from your explanation above.