Hi prof, sori to bother you again about this but i can't figure out for long time about this.

I have been using this custom function
double dv;
public String double2String(double v,double divider){
else if(v<0)dv=-0.5;
else dv=0;
return (int)(v*divider+dv)/divider+"";

// this code has to do with displaying the number 2.3 instead of 2.300000001 when using % %

l_n[i] = double2String(i,1); // added to trace array of balls

The output is 1.0 , 2.0 , 3.0 and so on,

what must i do to the codes to show 1 , 2 , 3 and so on?

i thought i did it before but i just can't get it to work :)