X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Bob Doherty Newsgroups: comp.os.msdos.djgpp Subject: Re: Why does it is rounding the result ? Message-ID: References: <002001c1a98f$d99f5580$19e0a0c8 AT rjo DOT virtua DOT com DOT br> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 33 Date: Wed, 30 Jan 2002 21:28:58 GMT NNTP-Posting-Host: 165.247.113.186 X-Complaints-To: abuse AT verio DOT net X-Trace: sjc-read.news.verio.net 1012426138 165.247.113.186 (Wed, 30 Jan 2002 21:28:58 GMT) NNTP-Posting-Date: Wed, 30 Jan 2002 21:28:58 GMT Organization: Verio To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 30 Jan 2002 14:49:05 +0100, "Christophe BARIBAUD" wrote: >You asked pwr function to return an integer, so it returns an integer, >truncating float value temp. > >try : >float pwr(const register float m, register int e) >instead > >You seem to use frequently "register". I don't know if it works really on >floats... And also, register is probably silently ignored in an argument list. Whether the argument passing is via a call frame or on a stack, the location of the argument is fixed and I don't think it can be a register. > >Regards > >"Pedro Izecksohn" a écrit dans le message news: >002001c1a98f$d99f5580$19e0a0c8 AT rjo DOT virtua DOT com DOT br... >> >> Why does the attached file when compiled rounds the result ? >> >> > ********************************************************************** * Bob Doherty * rdoherty2 AT earthlink DOT net * * USDA/ARS/BHNRC/FCL * doherty AT bhnrc DOT usda DOT gov * * Beltsville, MD 20705 * * **********************************************************************