円周率などの定数(Math.property)

いろんな定数をMath.propertyで指定できる。
実行結果


ヘッダ部分
なし

ボディ部分 <SCRIPT LANGUAGE="JavaScript"> document.write("Math.E = " + Math.E + "<P>") document.write("Math.LN2 = " + Math.LN2 + "<P>") document.write("Math.LN10 = " + Math.LN10 + "<P>") document.write("Math.LOG2E = " + Math.LOG2E + "<P>") document.write("Math.LOG10E = " + Math.LOG10E + "<P>") document.write("Math.PI = " + Math.PI + "<P>") document.write("Math.SQRT1_2 = " + Math.SQRT1_2 + "<P>") document.write("Math.SQRT2 = " + Math.SQRT2) </SCRIPT>