Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!sunic!tut!tukki!tarvaine From: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Newsgroups: comp.sys.ibm.pc Subject: Re: Bug in Turbo C "printf"; potentially serious. I think. Keywords: rounding, I better be right Message-ID: <1996@tukki.jyu.fi> Date: 14 Nov 89 05:15:13 GMT References: <2158@leah.Albany.Edu> Reply-To: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Organization: University of Jyvaskyla, Finland Lines: 12 In article <2158@leah.Albany.Edu> rds95@leah.Albany.Edu (Robert Seals) writes: > double g = 9.6; > > printf("%lf %.0lf %.1lf\n", g, g, g); >I think that this should result in the line "9.600000 10 9.6\n" being printed And that's exactly what it prints in my machine (regardless of memory model). Which version of TC do you have (I have 2.0)? -- Tapani Tarvainen (tarvaine@tukki.jyu.fi, tarvainen@finjyu.bitnet)