它返回2的自然对数,大约为0.693。
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
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Python实战 · 从0到1搭建直播视频平台 -〔Barry〕