www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/28/12:17:09

Date: Tue, 28 Jul 1998 11:18:26 -0500 (CDT)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Grzegorz Adam Hankiewicz <gah AT jet DOT es>
cc: djgpp AT delorie DOT com
Subject: Re: Where is ftoa and ltoa? I need to convert float->string.
In-Reply-To: <35bdb257.14590971@news.jet.es>
Message-ID: <Pine.GSO.3.96.980728111737.4683B-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

You can always use sprintf to do the same thing
sprintf(string, "%f", floatNumber);


On Tue, 28 Jul 1998, Grzegorz Adam Hankiewicz wrote:

> Hello.
> 
> I need some functions to convert a float number to a string.
> Browsing info I found atof,atol,atoi and itoa, but where are ftoa and
> ltoa?
> Are those functions there or do I have to write my own?
> 
> My GCC version is 2.7.2.1 + pgcc-2.90.23 980102 (egcs-1.0.1 release).
> Do I have to upgrade the compiler?
> 
> - Grzegorz Adam Hankiewicz - gah AT jet DOT es - http://web.jet.es/gregorio/
> - Gogosoftware - http://welcome.to/gogosoftware/
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019