Sep
05
|
Use static method Float.toString()
float f = 123.456f; String s = Float.toString(f); // An alternative would be to // use the following string concatenation String s2 = "" + f;
Leave a Reply
You must be logged in to post a comment.