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

alirezasafdari:
Direction from here:
while I wait for someone who knows the solution to number 2, I start making an equivalent __ftoa_engine in C++ so that for the worst case scenario. Then I make the dtostrf which is safe. Any suggestions are appreciated.

Do you realize that what you are trying to do is duplicate the floating point support code that is already available in GCC?

This is too funny.... "GCC'c floating point uses up SO many resources so I think I'll just write my own".