以前有来着 丢了

解决方案 »

  1.   

    import java.text.DecimalFormat;public class DtoS {
    public DtoS(){
    super();
    }
    public static String SicenToComm(double value) {
    String retValue = null;
    DecimalFormat df = new DecimalFormat();
    df.setMinimumFractionDigits(2); 
    df.setMaximumFractionDigits(2); 
    retValue = df.format(value);
    retValue = retValue.replaceAll(",", "");
    return retValue;
    }}   转换成String类型就可以了 静态的方法可以直接调用 我也是刚学的
    刚给别人结完帖 算是现买现卖吧 嘿嘿