Thursday, May 22, 2008

important point about double and int data when they are divided

Today when I am programming a small program, I make a small mistake about the double and int data;
The important point is :

int=int/int;

so I can't get a 0.75=4/3 use int data ;
but we could get that through:

double=double/int;
or
double=double/double;

No comments: