<html><head><title>JavaScript Math ceil() 方法</title></head><body><scripttype="text/javascript">
var value = Math.ceil(45.95);
document.write("第一次测试值 : " + value );
var value = Math.ceil(45.20);
document.write("<br/>第二次测试值 : " + value );
var value = Math.ceil(-45.95);
document.write("<br/>第三次测试值 : " + value );
var value = Math.ceil(-45.20);
document.write("<br/>第四次测试值 : " + value );
</script></body></html>