BigInteger::Log10 Method
Returns the base 10 logarithm of a specified number.
Assembly: System.Numerics (in System.Numerics.dll)
Parameters
- value
- Type: System.Numerics::BigInteger
A number whose logarithm is to be found.
Return Value
Type: System::DoubleThe base 10 logarithm of value, as shown in the table in the Remarks section.
| Exception | Condition |
|---|---|
| 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 | |
Negative |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.