🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2239

Re: HELP with Windows questions

#2239
From: Eric Bergman-Terrell
Date: Mon, 22 Apr 1991 00:10
20 lines
1497 bytes
I'll try to answer question #1 - since wsprintf doesn't do floating point,
use the sprintf that came with your compiler - unless you have BC++ 2.0
which has a bug in sprintf for floating point numbers.

If you have BC++ 2.0 consider writing your own floating point to ascii
conversion (that's what I had to do).

Note this is not a flame - if that's the only serious problem with BC++ 2.0
I'll still be happy.  The bug shows up as follows:

sprintf(str, "%f", (float) 24 / 27);

which places "1.0" into str rather than "0.88888".

Please don't call Borland - I already called it in.  I have a floating
point to ascii conversion routine which I'll post under coercion...


Terrell
Technical Details
Message-ID: <1991Apr22.001056.26562@mnemosyne.cs.du.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman
References: <113517@cc.utah.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman
From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell)
Newsgroups: comp.windows.ms.programmer
Subject: Re: HELP with Windows questions
Message-ID: <1991Apr22.001056.26562@mnemosyne.cs.du.edu>
Date: 22 Apr 91 00:10:56 GMT
References: <113517@cc.utah.edu>
Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
Reply-To: ebergman@isis.UUCP (Eric Bergman-Terrell)
Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.)
Lines: 20
Disclaimer1: Nyx is a public access Unix system run by the University of Denver
Disclaimer2: for the Denver community.  The University has neither control over
Disclaimer3: nor responsibility for the opinions of users.