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

要查找其对数的数字。

返回

value 的以 10 为底的对数,如“备注”部分中的表所示。

例外

value 的以 10 为底的对数超出了 Double 数据类型的范围。

注解

参数 value 指定为 10 基数。

方法的精确返回值取决于 的 value符号,如下表所示。

值参数的符号 返回值
的 base 10 对数 value;即 log10value
Double.NegativeInfinity.
负数 Double.NaN.

若要计算值的自然对数 BigInteger ,请调用 BigInteger.Log(BigInteger) 方法。 若要计算另一个基数的对数,请 BigInteger.Log(BigInteger, Double) 调用 方法。

此方法对应于 Math.Log10 基元数值类型的 方法。

适用于