The base 10 log of -1 is NaN. There are total 2 methods in the overload list of the MathLog method as follows. The Math class provides logarithms.
With C you can easily work with Logarithms.
Log B N Log A NLog A B When you enter a number and a base and click the Find Log button this example calculates the log of the number using that base. Public class Example public static void Main double numbers -1 0 105 5 798 1 4 69 10 50 100 500 1000 DoubleMaxValue. MathLog num base is probably what you are looking for. Otherwise if arg has integer type or the type double log2 is called.