Math.Log Method returns the logarithm of a specified number in a specified base.
using System; class LogDLogDD { public static void Main() { UseBaseAndArg(9.9, 0.1); } static void UseBaseAndArg(double argB, double argX) { Console.WriteLine( Math.Log(argX, argB)); } }