📜  将 java 舍入 2 位小数 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.907000             🧑  作者: Mango

代码示例1
class round{
    public static void main(String args[]){

    double a = 123.13698;
    double roundOff = Math.round(a*100)/100;

    System.out.println(roundOff);
}
}