-
Logarithms
I've tried looking on the net with no luck. I'm developing a small program for a pocket PC using C# MSVS 2005. I want to use the math routine log but It doesn't recognize "log" or "Log". How do I go about calculating the logarithm of a number to any base? There's got to be a routine built in for that. Thanks
-
you mean like this
Code:
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double x = 0.5;
double y = Math.Log(x);
Console.WriteLine(y.ToString());
}
}
}