java math round up的相關文章
java math round up的相關商品
Double value to round up in Java - Stack Overflow
瀏覽:595
日期:2024-04-28
Live @Sergey's solution but with integer division. double value = 23.8764367843; double rounded = (double) Math.round(value * 100) / 100; System.out.println(value +" rounded is "+ rounded); prints 23.8764367843 rounded is 23.88 EDIT: As Sergey points out,...看更多