s_lavie
asked on
How do I format a number?
How do I format a number in this example:
public class MyClass
{
double d = 12.2386489583459;
public String toString()
{
String str = ... // need to be 12.2
return str;
}
}
public class MyClass
{
double d = 12.2386489583459;
public String toString()
{
String str = ... // need to be 12.2
return str;
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.