sqrt
種類
メソッド
書式
Math.sqrt(値)
解説
平方根を返します。
サンプルコード
n = eval(prompt("Input Number",10));
alert(n+"の平方根は"+Math.sqrt(n)+"です。");
実際のスクリプトを
ダウンロード