www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/24/00:49:07

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Converting Float to String...
Date: Sun, 23 Feb 1997 23:37:44 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 17
Message-ID: <33114548.4007@cs.com>
References: <5eqq5r$kkt AT ruby DOT ucc DOT nau DOT edu>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp103.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

That function is non-ANSI, so you can't count on it being in every
compiler.  If you want to make your own version, just write a function
and have it sprintf() the float value into a string.  Simple.  :)

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I      |   mailto:fighteer AT cs DOT com   |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary  |
|                      - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------

- Raw text -


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