2013年3月4日
摘要: 标签:杂谈 javascriptCODE:<script><!--//var n = 4.2;document.write(Math.floor(n));//取小于等于n的最大整数(下取整)document.write(Math.ceil(n));//取大于等于n的最小整数(上取整)document.write(Math.round(n));//四舍五入(与符号无关)//--></script>asp(vbscript)CODE:<%dim nn = 4.2response.write(int(n)) '取小于等于n的最大整数(下取整) 取整数 阅读全文
posted @ 2013-03-04 17:18 阿米 阅读(974) 评论(0) 推荐(0) 编辑