document.write(Math.abs(-345) + "<BR>"); // 绝对值
document.write(Math.ceil(8.1) + "<BR>"); // 上舍入:比所求数的绝对值大一
document.write(Math.floor(8.9999) + "<BR>"); // 下舍入:比所求数的绝对值小一
document.write(Math.round(6) + "<BR>"); // 四舍五入
document.write(Math.max(666, 777) + "<BR>"); // 求最大数
document.write(Math.min(666, 777) + "<BR>"); // 求最小数
document.write(Math.sqrt(5) + "<BR>");
document.write(Math.random() + "<BR>"); // 返回0~1之间的随机数