java 中 Math.round() Math.ceil() Math.floor()区别

打一个简单的比如有两个小数12.1和12.7Math.round()分别是12,和13 -------取最近的值Math.ceil()分别是12和12 ------取地板Math.floor()分别是13和13 ------取天花板