hello everyone
i have the following program
///////////////////////////////////
#include <stdio.h>
#include <iostream.h>
void main ()
{
float x = 1073741855;
printf ("%f\n", x);
cout << x;
}
//////////////////////////////////
and the out put on running is as follows
1073741824.000000
1.07374e+09
What i want to know is that why am i not
getting
the o/p as 1073741855 .There is a difference
of 31.What am i doing wrong?
Thanks everybody.
Regards
Virindera
--
_______________________________________________
Win a ski trip!
http://ad.doubleclick.net/clk;3840379;4478627;x?http://www.nowcode.com/register.asp?affiliate=1net2phone3a
================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
=================================================