C# BigInteger Log10
Description
BigInteger Log10
Returns the base 10 logarithm of a specified
number.
Syntax
BigInteger.Log10
has the following syntax.
public static double Log10(
BigInteger value
)
Parameters
BigInteger.Log10
has the following parameters.
value
- A number whose logarithm is to be found.
Returns
BigInteger.Log10
method returns The base 10 logarithm of value, as shown in the table in the Remarks section.
Example
using System;/* w w w.ja v a2 s. c o m*/
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger[] values = { 2, BigInteger.Pow(1000, 100), BigInteger.Pow(2, 64) };
foreach (var value in values)
Console.WriteLine(Math.Exp(BigInteger.Log10(value)));
}
}