WorksheetFunction.Ln 方法 (Excel)WorksheetFunction.Ln method (Excel)

傳回數字的自然對數。Returns the natural logarithm of a number. 自然對數以常數項 e (2.71828182845904) 為底數。Natural logarithms are based on the constant e (2.71828182845904).

語法Syntax

運算式Ln(Arg1)expression.Ln (Arg1)

_運算式_代表**WorksheetFunction** 物件的變數。expression A variable that represents a WorksheetFunction object.

參數Parameters

名稱Name 必要/選用Required/Optional 資料類型Data type 描述Description
Arg1Arg1 必要Required DoubleDouble Number - 您想要的自然對數之正實數。Number - the positive real number for which you want the natural logarithm.

傳回值Return value

雙精確度Double

註解Remarks

Ln為 EXP 函數的反函數。Ln is the inverse of the EXP function.

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.