您的位置:首页 > Web前端 > JQuery

web前端,jquery实现瀑布流总结3,Math.floor()对数进行下舍入

2015-10-01 16:03 751 查看
<!DOCTYPE html>
<!--Math.floor()对数进行下舍入-->
<!--参考http://www.w3school.com.cn/jsref/jsref_floor.asp-->
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
document.write(Math.floor(0.60) + "<br />")
document.write(Math.floor(0.40) + "<br />")
document.write(Math.floor(5) + "<br />")
document.write(Math.floor(5.1) + "<br />")
document.write(Math.floor(-5.1) + "<br />")
document.write(Math.floor(-5.9))
</script>

</body>
</html>
参考:ttp://www.w3school.com.cn/jsref/jsref_floor.asp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: