Date: Mon, 24 Feb 1997 09:58:03 +0100 (MET) From: Miguel Murillo To: Michael Dylan Ryan cc: djgpp AT delorie DOT com Subject: Re: Converting Float to String... In-Reply-To: <5eqq5r$kkt@ruby.ucc.nau.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 24 Feb 1997, Michael Dylan Ryan wrote: > > Can someone tell me if there is a function to convert a floating point > number to a string in DJGPP 2.0. I can not find one. In borland it is > FCVT(). Please help.... thanks > Try : int sprintf( char *str, const char *format, ...); float x; char str[100]; sprintf(str,"%f",x); ANSI-C. Good Luck Miguel Murillo