| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <42736.193.194.133.6.1069943991.squirrel@jose.freesurf.fr> |
| Date: | Thu, 27 Nov 2003 15:39:51 +0100 (CET) |
| Subject: | pow math function pb. |
| From: | <ycollet AT freesurf DOT fr> |
| To: | <cygwin AT cygwin DOT com> |
| X-Priority: | 3 |
| Importance: | Normal |
| X-MSMail-Priority: | Normal |
| MIME-Version: | 1.0 |
Hello,
I've tried this program under cygwin:
#include <math.h>
int main()
{
printf("%lf\n", pow(2,8));
return 0;
}
This program returns 8 instead of 256.
I've tried pow(2.0,8), pow(2.0, 8.0), etc ... Seems to me that I've found
a bug ?
instead of pow, I'm using pow(A,B)=exp(B*log(A)) (it works)
Your sincerely,
Yann COLLETTE
PS: What about a bugzilla page ?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |