Mail Archives: djgpp/1996/11/03/01:24:12
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 -