Article View: comp.os.msdos.programmer
Article #4577Re: Microsoft C actually does something better!
From: Richard Kooijman
Date: Thu, 07 Feb 1991 12:01
Date: Thu, 07 Feb 1991 12:01
17 lines
939 bytes
939 bytes
6600m00n@ucsbuxa.ucsb.edu (Steelworker) writes:
>In article <8904@sail.LABS.TEK.COM> toma@sail.LABS.TEK.COM (Tom Almy) writes:
>>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!
WRONG, the l modifier only applies to long int's and not floating point
numbers.
Richard.
Technical Details
Message-ID:
<1217@duteca.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!dutrun!duteca!kooijmanReferences:
<8904@sail.LABS.TEK.COM> <8854@hub.ucsb.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!dutrun!duteca!kooijman From: kooijman@duteca (Richard Kooijman) Newsgroups: comp.os.msdos.programmer Subject: Re: Microsoft C actually does something better! Message-ID: <1217@duteca.UUCP> Date: 7 Feb 91 12:01:28 GMT References: <8904@sail.LABS.TEK.COM> <8854@hub.ucsb.edu> Organization: Delft University of Technology, Netherlands Lines: 17