Eclipse下,Android编程中:
double num = 0.009;
String numStr = Double.toString(0.009);
DisplayToast( "0.009str : " + numStr ); //结果为: 0.00) *******
public void DisplayToast(String str) {
Toast.makeText(this, str, Toast.LENGTH_LONG).show();
}为什么显示结果为 0.00) ????
double num = 0.009;
String numStr = Double.toString(0.009);
DisplayToast( "0.009str : " + numStr ); //结果为: 0.00) *******
public void DisplayToast(String str) {
Toast.makeText(this, str, Toast.LENGTH_LONG).show();
}为什么显示结果为 0.00) ????
-------------------------------
编程菜鸟学堂QQ群144648357