大家好,又见面了,我是你们的朋友全栈君。
Math.ceil()//向上取整,如1.5->2.0
Math.floor()//向下取整,如1.5->1.0
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/151867.html原文链接:https://javaforall.net
java 向上取整 向下取整Math.ceil()//向上取整,如1.5->2.0Math.floor()//向下取整,如1.5->1.0
大家好,又见面了,我是你们的朋友全栈君。
Math.ceil()//向上取整,如1.5->2.0
Math.floor()//向下取整,如1.5->1.0
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/151867.html原文链接:https://javaforall.net