語言

BigInteger.Log10(BigInteger) 方法

定義

回傳指定數字的底位10對數。

public:
 static double Log10(System::Numerics::BigInteger value);
public static double Log10(System.Numerics.BigInteger value);
static member Log10 : System.Numerics.BigInteger -> double
Public Shared Function Log10 (value As BigInteger) As Double

參數

value
BigInteger

一個對數的數字。

傳回

如備註區表格所示,為 的 的 value10 對數底。

例外狀況

value 以 10 為底的對數超出資料 Double 型別的範圍。

備註

value參數以10為底數指定。

方法的精確返回值取決於 的 value符號,如下表所示。

值參數的符號 返回值
value10 為底的對數;即 log10value
Double.NegativeInfinity
負數 Double.NaN

要計算一個 BigInteger 值的自然對數,請呼叫 該 BigInteger.Log(BigInteger) 方法。 若要計算另一個基數的對數,請呼叫該 BigInteger.Log(BigInteger, Double) 方法。

此方法對應 Math.Log10 於原始數值型的方法。

適用於