I would like to restrict the output of this line 2 decimal places only.
GfxTextOut( "CPerc : "+Prec(Lookup(ROC(C,1),dx),2)+" %" ,5+x1Rrect, 66+y1Rrect+FontSize);
Thanks
I would like to restrict the output of this line 2 decimal places only.
GfxTextOut( "CPerc : "+Prec(Lookup(ROC(C,1),dx),2)+" %" ,5+x1Rrect, 66+y1Rrect+FontSize);
Thanks
Use StrFormat( "%.2f", number );
and please do read the manual: