javaweb處理小數點前面的0顯示在頁面上

//格式化數字處理方式

 DecimalFormat min=new DecimalFormat("0.00");   bd.setMin_aperture(min.format((rs.getDouble(26)))); 

 //格式化數字 DecimalFormat max=new DecimalFormat("0.00");   bd.setMax_aperture(max.format((rs.getDouble(27)))); bd.setManufacture_tool_code(rs.getString(28));

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章