Or another way of looking at it is 2 only goes into 3 one time..el-half is correct, if you want the correct value to come out of the division portion, at least one needs to be a double value.
EDIT: ie 1/3=0, but 1.0/3.0=.3333333e
Another way of doing it would be <var>=2.5 + (double) 3/2;




Reply With Quote