Path: 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 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