JavaScript 中的 Math.LN2 属性
htmljavascriptweb developmentfront end technology更新于 2024/8/12 2:34:00
Math 对象的 LN2 属性表示 2 的对数值。
语法
其语法如下
Math.LN2
示例
<html> <head> <title>JavaScript 示例</title> </head> <body> <script type="text/javascript"> var data = Math.LN2; document.write(data); </script> </body> </html>
输出
0.6931471805599453