String number = Float.toString(number);
I think what you are trying to do is convert the number n to a string yes?
What I would do is this:
String number = new Float(n).toString();
Here I create a Float object from my float primitive, then convert it to a String. You have tried to call the toString method statically and then pass the variable number instead of n.
darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200