Look at this code:
double mydouble;
mydouble=5/3;
Print(mydouble);
mydouble=5.3/3.3;
Print(mydouble);
results:
1
1,66666666666667
question:
How can i obtain the last result making the division between two integers (5/3)?
I hope not to declare
double mydouble=0.0;
because i'm really speaking about a matrix:
private double [] mydouble = new double[10000];
and I don't know how to initialize it (i expect not with a for or while for each element)
thanks,
jr.
Comment