From: "David C. Hoos, Sr." Newsgroups: comp.os.msdos.djgpp Subject: Re: Why the value of "c" is always "-17.78"?? Date: Mon, 6 Dec 1999 04:05:32 -0600 Content-Transfer-Encoding: 7bit References: <82ctj1$i7b$1 AT imsp026 DOT netvigator DOT com> <002101bf3f99$c6049b00$0100a8c0 AT pcpablo> X-Posted-Path-Was: not-for-mail Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: 6 Dec 1999 10:05:34 GMT X-ELN-Insert-Date: Mon Dec 6 03:25:05 1999 Organization: Ada95 Press, Inc. X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 Lines: 25 Mime-Version: 1.0 NNTP-Posting-Host: sdn-ar-002alhuntp327.dialsprint.net Message-ID: <82g1pe$hu$1@birch.prod.itd.earthlink.net> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Pablo M. Dotro wrote in message news:002101bf3f99$c6049b00$0100a8c0 AT pcpablo... > Hi Jason! > > 1.- make the ftc function to do only one conversion, so it should look like: > > float ftc(float f){ > float c; > c = (5.0/9.0) * (f-32); > > return(c); > } Why not just: float ftc (float f) { return (5.0/9.0) * (f - 32); }