pow math function pb.
ycollet@freesurf.fr
ycollet@freesurf.fr
Thu Nov 27 15:55:00 GMT 2003
Hello,
Sorry, I forgot to say that I'm using the latest cygwin.
gcc version is 3.3.1.
I have tried again the little example and now it works.
But my main program which ends by these two lines.
I have cleaned my program and I attach it to this mail.
Your sincerely,
Yann COLLETTE
> On Thu, Nov 27, 2003 at 03:39:51PM +0100, ycollet@freesurf.fr wrote:
>> 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 ?
>
> Works for me with Cygwin 1.5.5 and recent developer snapshots. You
> didn't tell anything about the version you're using.
>
> Corinna
>
> --
> Corinna Vinschen Please, send mails regarding Cygwin
> to Cygwin Developer
> mailto:cygwin@cygwin.com Red Hat, Inc.
>
> --
> 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/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ess.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031127/c38c7116/attachment.c>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list