// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002332/double-log10
// @nuget: Z.ExtensionMethods
using System;
public class Program
{
public static void Main()
double[] numbers = {-1, 0, .105, .5, .798, 1, 4, 6.9, 10, 50, 100, 500, 1000, Double.MaxValue};
foreach (double number in numbers)
// C# Extension Method: Double - Log10
Console.WriteLine("The base 10 log of {0} is {1}.",
number, number.Log10());
}