Java中的格式化数值(eg:保留两位小数)    CommonVO cvo = (CommonVO) request.getAttribute("cancelList.vo"); 
       DecimalFormat myformat1 
= new DecimalFormat("0.00"); //DecimalFormat("0.##");
Java中的格式化数值(eg:保留两位小数)    String strFee = myformat1.format(cvo.getDouble("fee"));
       out.println(strFee);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案