BigInteger.Log10(BigInteger) 方法

定义

返回指定数字以 10 为底的对数。Returns the base 10 logarithm of a specified number.

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

要查找其对数的数字。A number whose logarithm is to be found.

返回

Double

value 的以 10 为底的对数,如“备注”部分中的表所示。The base 10 logarithm of value, as shown in the table in the Remarks section.

例外

value 的以 10 为底的对数超出了 Double 数据类型的范围。The base 10 log of value is out of range of the Double data type.

注解

value 参数指定为以10为基数的数字。The value parameter is specified as a base 10 number.

此方法的准确返回值取决于 value的符号,如下表所示。The precise return value of the method depends on the sign of value, as the following table shows.

值参数的符号Sign of value parameter 返回值Return value
Positive value的基数为10的日志;也就是说,log10valueThe base 10 log of value; that is, log10value.
Zero Double.NegativeInfinity 列中的一个值匹配。Double.NegativeInfinity.
消极Negative Double.NaN 列中的一个值匹配。Double.NaN.

若要计算 BigInteger 值的自然对数,请调用 BigInteger.Log(BigInteger) 方法。To calculate the natural logarithm of a BigInteger value, call the BigInteger.Log(BigInteger) method. 若要计算某个数在另一个基中的对数,请调用 BigInteger.Log(BigInteger, Double) 方法。To calculate the logarithm of a number in another base, call the BigInteger.Log(BigInteger, Double) method.

此方法对应于基元数值类型的 Math.Log10 方法。This method corresponds to the Math.Log10 method for the primitive numeric types.

适用于