Math.Log10 Method returns the base 10 logarithm of a specified number.
using System; public class Example { public static void Main() { double[] numbers = {100, 500, 1000, Double.MaxValue}; foreach (double number in numbers) Console.WriteLine("The natural log of {0} is {1}.", number, Math.Log10(number)); } }