X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Christophe BARIBAUD" Newsgroups: comp.os.msdos.djgpp Subject: Re: Why does it is rounding the result ? Date: Wed, 30 Jan 2002 14:49:05 +0100 Organization: CompuServe Interactive Services Lines: 20 Message-ID: References: <002001c1a98f$d99f5580$19e0a0c8 AT rjo DOT virtua DOT com DOT br> NNTP-Posting-Host: fra-tgn-ozb-vty15.as.wcom.net X-Trace: suaar1ab.prod.compuserve.com 1012398593 29245 195.232.60.15 (30 Jan 2002 13:49:53 GMT) X-Complaints-To: newsmaster AT compuserve DOT com NNTP-Posting-Date: 30 Jan 2002 13:49:53 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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... 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 ? > >