Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

會傳回指定 e (自然對數的基數) 次方的 Double

語法

Exp ( 數字 )

必要 數位引數 為 Double 或任何有效的 數值運算式。

註解

如果 number 的值超過 709.782712893,則會發生錯誤。 常數e 大約是 2.718282。

附註:  Exp 函數補強 Log 函數的動作,有時稱為反對數。

查詢範例

Expression

結果​​

SELECT Exp (2) AS 運算式1 FROM ProductSales GROUP BY Exp (2) ;

傳回指定 「e (2.718282) 」 的值,並以 「2」 的次方顯示結果。

SELECT Exp (quantity) AS ExpValue FROM ProductSales;

傳回指定「e (2.718282) 」的值,以數據值在「數量」欄中的乘冪。 傳回指定「e (2.718282) 」的值,以數據值在「數量」欄中的乘冪,並在「ExpValue」欄中顯示結果。

VBA 範例

附註: 下列範例示範如何在 Visual Basic for Applications (VBA) 模組中使用此函數。 如需使用 VBA 的詳細資訊,請在 [搜尋] 旁的下拉式清單中選取 [開發人員參考],並在 [搜尋] 方塊中輸入一個或多個字詞。

此範例使用 Exp 函數,將 e 乘上電源。

Dim MyAngle, MyHSin
' Define angle in radians.
MyAngle = 1.3
' Calculate hyperbolic sine.
MyHSin = (Exp(MyAngle) - Exp(-1 * MyAngle)) / 2

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×