[Courses] [C Doubt]
sneha
sneha at vit.ac.in
Sun Sep 8 07:50:31 EST 2002
Hello all :)
I have a doubt in c's (pow) function...
I tried to run this code..which resulted in an output:
2375726401805877617098752
#include<math.h>
main()
{
printf("%.0lf\n",pow(75,13));
}
but, what I found in the calculator was
2375726401805877685546875
a difference of...
68448123
what I want to know is.......what is the limit of a double variable and what is a solution to get an answer what I got in CALCULATOR...
thanx in advance..
happy day
friendly
sneha :o)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linuxchix.org/pipermail/courses/attachments/20020908/23e20fd9/attachment.xhtml
More information about the Courses
mailing list