delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/06/08:34:39

From: "David C. Hoos, Sr." <david DOT c DOT hoos DOT sr AT ada95 DOT com>
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
References: <82ctj1$i7b$1 AT imsp026 DOT netvigator DOT com> <002101bf3f99$c6049b00$0100a8c0 AT pcpablo>
X-Posted-Path-Was: not-for-mail
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 <pyd AT sion DOT com> wrote in message
news:002101bf3f99$c6049b00$0100a8c0 AT pcpablo...
> Hi Jason!
>
<snip>
> 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);
}


<snip>



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019