delorie.com/archives/browse.cgi | search |
From: | martin AT loplop DOT com (Martin Peach) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Where is ftoa and ltoa? I need to convert float->string. |
Date: | Tue, 28 Jul 1998 16:10:56 GMT |
Organization: | Communications Accessibles Montreal, Quebec Canada |
Lines: | 7 |
Message-ID: | <35bdf7a2.1320501@nntp.hip.cam.org> |
References: | <35bdb257 DOT 14590971 AT news DOT jet DOT es> |
NNTP-Posting-Host: | dialup-898.hip.cam.org |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
>I need some functions to convert a float number to a string. Try sprintf(stringBuf, "%f"); and all it's formatting variants like "%02.5f" as documented under printf. Martin.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |