Source code
float data = 123.456789f;
String s = String.format(“%.3f %s”,data,”%”);

Output
>>123.457 %

Advertisements