這將會回傳基數2的對數e,大約是 1.442.
文法
Math.LOG2E
範例:
<html> <head> <title>JavaScript Math LOG2E Property</title> </head> <body> <script type="text/javascript"> var property_value = Math.LOG2E document.write("Property Value is : " + property_value); </script> </body> </html>
這將產生以下結果:
Property Value is : 1.4426950408889633