From: George Foot Newsgroups: comp.os.msdos.djgpp Subject: Re: converting floats to strings Date: 2 Dec 1997 06:29:06 GMT Organization: Oxford University, England Lines: 13 Message-ID: <6609ri$r7g$1@news.ox.ac.uk> References: NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Mon, 1 Dec 1997 18:27:04 GMT in comp.os.msdos.djgpp Guillermo Porras wrote: : float float_number ; : char *string ; : /*I use */ sprintf ( string ,"%f", float_number ) ; ... but remember to mallocate some memory first, or make `string' an array rather than a pointer. -- george DOT foot AT merton DOT oxford DOT ac DOT uk