首页 > 代码库 > 数字转金额格式* 999999.99 TO 999,999.99

数字转金额格式* 999999.99 TO 999,999.99

/**     * 数字转金额格式     * 999999.99  TO  999,999.99     * @param d     * @return     */    public static String doubleToStr(double d){               NumberFormat numberFormat1 = NumberFormat.getNumberInstance();        numberFormat1.setMaximumFractionDigits(2);        return numberFormat1.format(d);    }        public static void main(String[] args) {         String temp = doubleToStr(726042222.62592313213);            System.out.println(temp);    }

 

数字转金额格式* 999999.99 TO 999,999.99