how to automatically add the text in ? My syntax wrong 

Custom Page:

double dv;
public String double2String(double v,double divider,double text ){
if(v>0)dv=0.5;
else if(v<0)dv=-0.5;
else dv=0;
return (int)(v*divider+dv)/divider+"text"+"";
}


Constraint Page:

s_vx=double2String(vx,100.,vx );