public final class Math extends Object public static double floor(double a) public static long round(double a) public static int round(float a) public static double ceil(double a) floor 返回不大于的最大整数;ceil 则是不小于他的最小整数;round 它表示"四舍五入"…
ceil 是“天花板" floor 是 “地板” 一个靠上取值,另一个靠下取值,如同天花板,地板. double ceil ( double x ); float ceil ( float x ); long double ceil ( long double x ); double floor ( double x ); float floor ( float x ); long double floor ( long double x ); 参数是float,输出是float 参数是do…