ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/03/01:24:12

From: ksinner AT solaria DOT sol DOT net (Kenton E. Sinner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Double to string anybody?
Date: 3 Nov 1996 00:39:04 GMT
Organization: Solaria Public Access UNIX - Milwaukee, WI
Lines: 26
Message-ID: <55gpj8$sc@hummin.sol.net>
References: <55142b$su AT news DOT sdsmt DOT edu> <5568bo$kdl AT hummin DOT sol DOT net> <E058uw DOT JyL AT cee DOT hw DOT ac DOT uk>
NNTP-Posting-Host: hummin.sol.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Peter JB King (pjbk AT cee DOT hw DOT ac DOT uk) wrote:
: In article <5568bo$kdl AT hummin DOT sol DOT net> ksinner AT solaria DOT sol DOT net (Kenton E. Sinner) writes:
: >Olav Kindt (oak9755 AT silver DOT sdsmt DOT edu) wrote:
: >: Hi there,
: >
: >: I was wondering if djgpp had the equivalent of the gcvt() function from
: >: BCC (Yeah i know..). Has anybody implemented these, or do I have to do it
: >
: >I had to write my own function for just this purpose.  But it's not hard.

[snip]

: >
: The suggested solution doesn't seem to take care of the fractional part.
: Why not use sprintf?  It is more likely to be tested for all the funny
: boundary value cases than any ad-hoc function that one hacks together!

I'm sorry, I misunderstood the question.  I was thinking about "long
long" int, not "double".  Sorry to add to the confusion.  :(

--
Ken Sinner                       |  Want to run your OWN life for a change?
ksinner AT solaria DOT sol DOT net          |         Harry Browne for President
                                 |        http://www.HarryBrowne96.org
"It ain't what we don't know that gets us into trouble, as much as what we
do know that ain't so." -- Will Rogers (I think)

- Raw text -


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