Javascript-math-ln2

提供:Dev Guides
2020年6月23日 (火) 09:40時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

JavaScript-数学LN2プロパティ

説明

約0.693である2の自然対数を返します。

構文

その構文は次のとおりです-

Math.LN2

次のプログラム例を試してください。

<html>
   <head>
      <title>JavaScript Math LN2 Property</title>
   </head>

   <body>
      <script type = "text/javascript">
         var property_value = Math.LN2
         document.write("Property Value is : " + property_value);
      </script>

   </body>
</html>

出力

Property Value is : 0.6931471805599453