VBScriptAtn関数_
❮完全なVBScriptリファレンスAtn関数は、指定された数値のアークタンジェントを返します。
構文
Atn(number)
Parameter | Description |
---|---|
number | Required. A numeric expression |
例
例1
<%
response.write(Atn(89) & "<br />")
response.write(Atn(8.9))
%>
上記のコードの出力は次のようになります。
1.55956084453693
1.45890606062322
例2
円周率の値を計算します。
<%
Dim pi
pi=4*Atn(1)
response.write(pi)
%>
上記のコードの出力は次のようになります。
3.14159265358979
❮完全なVBScriptリファレンス