From: NoEmailAds AT execpc DOT com (Chris Giese) Newsgroups: comp.os.msdos.djgpp Subject: Re: float version of itoa Date: Mon, 10 Mar 2003 02:58:12 GMT Organization: PROPULSION GROUP Message-ID: <3e6bfe79.19687013@news.voyager.net> References: <18555N369 AT web2news DOT com> X-Newsreader: Forte Free Agent 1.21/32.243 X-Complaints-To: abuse AT supernews DOT com Lines: 14 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Joel_S" wrote: >I don't think there's a built in version of a float to string conversion >routine, but does anybody have any code, or know a library that contains Sure there is -- there are three routines, in fact: #include char *ecvt(double value, int ndigits, int *decpt, int *sign); char *fcvt(double value, int ndigits, int *decpt, int *sign); char *gcvt(double value, int ndigits, char *buf); Or you can use sprintf()