From: michael DOT mauch AT gmx DOT de (Michael Mauch) Newsgroups: comp.os.msdos.djgpp Subject: Re: converting floats to strings Date: Tue, 02 Dec 1997 09:55:40 +0100 Organization: Gerhard-Mercator-Universitaet -GH- Duisburg Lines: 19 Message-ID: <3488c879.7562143@news.uni-duisburg.de> References: <199712020026 DOT NAA17553 AT fep1-orange DOT clear DOT net DOT nz> NNTP-Posting-Host: ppp106.uni-duisburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Tue, 2 Dec 1997 12:09:36 GMT, "Jamie Love" wrote: > hi, my problem is summed up in the subject. Is there a function that can > convert float variables to strings? Yes, I usually use sprintf() to print to a character array, like this: float f; char buf[100]; sprintf(buf,"%f",f); Have a look at sprintf() in the libc info file. You didn't mean C++ strings, did you? Regards... Michael