java有个java.text.DecimalFormat类,自己参考去
解决方案 »
- 急问!ERP中MPS!!超基础!!概念问题!
- Today you do people don't do,tomorrow you do people can't do!
- hibernate往oracle插入默认值
- Tomcat 启动出现错误
- ResultSet is closed怎么解决啊?
- jsp从mysql中查询出来是乱码
- 关于DTD文件
- 在tomcat下的ROOT目录怎么让JAVABEAN程序运行?????????
- 用jsp下载一个可执行文件(setup.exe),response.setContentType()如何写?
- 我哪里错了???!!!
- 关于servlet运行配置的问题~~
- 请问大家喜欢用什么IDE做JSP和SERVLET
BigDecimal b = new BigDecimal(Double.toString(v));
BigDecimal one = new BigDecimal("1");
String temp = b.divide(one, 2, BigDecimal.ROUND_HALF_UP).toString();
int index = temp.indexOf(".");
return temp = temp + "," + temp.substring(0,index);
}
DecimalFormat _df = new DecimalFormat("###,##0.00");
String _strDf = _df.format(f);