Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BigInteger.Log10 Method

Returns the base 10 logarithm of a specified number.

Namespace:  System.Numerics
Assemblies:   System.Runtime.Numerics (in System.Runtime.Numerics.dll)
  System.Numerics (in System.Numerics.dll)

public static double Log10(
	BigInteger value
)

Parameters

value
Type: System.Numerics.BigInteger

A number whose logarithm is to be found.

Return Value

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

ExceptionCondition
ArgumentOutOfRangeException

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft