JavaScript 參考手冊
JavaScript Math 對象
返回 2 的自然對數(shù):
輸出結(jié)果:
LN2 屬性就是 loge2,即 2 的自然對數(shù),其值近似于 0.69314718055994528623。
所有主流瀏覽器都支持 LN2 屬性。