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