delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/30/09:00:06

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Christophe BARIBAUD" <cbaribau AT jnjfr DOT jnj DOT com>
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: <a38tm1$sht$1@suaar1ab.prod.compuserve.com>
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" <izecksohn AT yahoo DOT com> 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 ?
>
>


- Raw text -


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