Aracılığıyla paylaş


BigInteger.Log10 Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the base 10 logarithm of a specified number.

Namespace:  System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

Syntax

'Declaration
Public Shared Function Log10 ( _
    value As BigInteger _
) As Double
public static double Log10(
    BigInteger value
)

Parameters

Return Value

Type: System.Double
The base 10 logarithm of value, as shown in the table in the Remarks section.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The base 10 log of value is out of range of the Double data type.

Remarks

The value parameter is specified as a base 10 number.

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

The base 10 log of value; that is, log10value.

Zero

Double.NegativeInfinity.

Negative

Double.NaN.

To calculate the natural logarithm of a BigInteger value, call the BigInteger.Log(BigInteger) method. To calculate the logarithm of a number in another base, call the BigInteger.Log(BigInteger, Double) method.

This method corresponds to the Math.Log10 method for the primitive numeric types.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.