import java
import java
public class Test
{
public Test(){
double a=saveNumber(
System
}
//保留小數點的位數
//number為要處理的數
public double saveNumber(double number
NumberFormat ddf
ddf
String s= ddf
double Num=Double
return Num;
}
public static void main(String args[])
{
new Test();
}
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20071.html