html5常用数学 公式的用法

<script>

// alert(Math.PI);

// alert(Math.floor(3.16));

// var a=Math.ceil(3.1);

// alert(a);

// alert(Math.round(3.1));

// alert(Math.round(3.5));

// var b=Math.random();

// document.write(b);

// for (var i = 0; i <10 ; i++) {

// document.write(Math.floor(Math.random()*10+1)+"<br>");

// }

// function selec(low,high){

// var ch=high-low+1;

// return Math.floor(Math.random()*ch+low);

// }

// for (var i = 0; i < 10; i++) {

// document.write(selec(1111,8888)+"<br>");

// }

// alert(Math.cos(Math.PI/3));

alert(Math.max(1,8,9,88));

</script>