java 四舍五入

import java.lang.Math;



    public static void main(String[] args) {
        System.out.println("Math.round(11.5)="+Math.round(11.5));
        System.out.println("Math.round(-11.5)="+Math.round(-11.5));
    }
原文地址:https://www.cnblogs.com/xinxindiandeng/p/1358597.html