パラメータを入れる Math.method


実行結果


ヘッダ部分
なし

ボディ部分 <SCRIPT LANGUAGE="JavaScript"> document.write("Math.abs(-8) = " + Math.abs(-8) + "<BR>") document.write("Math.acos(0.5) = " + Math.acos(0.5) + "<BR>") document.write("Math.asin(0.5) = " + Math.asin(0.5) + "<BR>") document.write("Math.atan(0.5) = " + Math.atan(0.5) + "<BR>") document.write("Math.ceil(3.3) = " + Math.ceil(3.3) + "<BR>") document.write("Math.cos(0.5) = " + Math.cos(0.5) + "<BR>") document.write("Math.exp(0.5) = " + Math.exp(0.5) + "<BR>") document.write("Math.floor(3.3) = " + Math.floor(3.3) + "<BR>") document.write("Math.log(3) = " + Math.log(3) + "<BR>") document.write("Math.max(8,9) = " + Math.max(8,9) + "<BR>") document.write("Math.min(8,9) = " + Math.min(8,9) + "<BR>") document.write("Math.pow(2,8) = " + Math.pow(2,8) + "<BR>") document.write("Math.random() = " + Math.random() + "<BR>") document.write("Math.round(1.5) = " + Math.round(1.5) + "<BR>") document.write("Math.round(1.4) = " + Math.round(1.4) + "<BR>") document.write("Math.sin(0.5) = " + Math.sin(0.5) + "<BR>") document.write("Math.sqrt(2) = " + Math.sqrt(2) + "<BR>") document.write("Math.tan(0.5) = " + Math.tan(0.5) + "<BR>") </SCRIPT>