🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4541

Re: Microsoft C actually does something better!

#4541
From: Steelworker
Date: Tue, 05 Feb 1991 20:41
18 lines
1043 bytes
In article <8904@sail.LABS.TEK.COM> toma@sail.LABS.TEK.COM (Tom Almy) writes:

>Microsoft C has been bad-mouthed here by myself and others over the years,
>but this past weekend I discovered at least one place where it beats the
>major competition -- the math library. Two cases:

>Case 1: { double x=1e200; printf("%g",x*x); }
>(With some compilers, the 80x87 has to have the overflow trap masked off).

First problem-  the printf should read 
printf("%lg",x*x);
         ^
I have made this error enough times to preach about this one!

Try your test's again with this and post the results.

Robert Blair
6600m00n@ucsbuxa.ucsb.edu
Technical Details
Message-ID: <8854@hub.ucsb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ogicse!ucsd!hub.ucsb.edu!ucsbuxa!6600m00n
References: <8904@sail.LABS.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ogicse!ucsd!hub.ucsb.edu!ucsbuxa!6600m00n
From: 6600m00n@ucsbuxa.ucsb.edu (Steelworker)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Microsoft C actually does something better!
Message-ID: <8854@hub.ucsb.edu>
Date: 5 Feb 91 20:41:09 GMT
References: <8904@sail.LABS.TEK.COM>
Sender: news@hub.ucsb.edu
Lines: 18