Many programming languages that use IEEE 754 doubles provide a library function to convert those doubles to strings. For example, C has sprintf, C++ has
sprintf
I believe you are looking for Printing Floating-Point Numbers Quickly and Accurately
I found that link on another post: here.