using Math.sqrt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I'm trying to construct a simple console application in c#. I basically
want to print out the sqrt of 9, here's the line:

Console.WriteLine(Math.Sqrt(9));

But an error is saying that an assembly is missing. The namespace system is
already imported, anyone know how to get this working?

I'm using vs.net 2003.

Rats
 
I can't reproduce the problem.
I created a new ConsoleApplication from the same application (vs2003) and
pasted the line in.
No problem, it ran fine.

Could you provide a complete, yet simplified example that shows the code
being run with the error?
If you could provide the name of the assembly that it thinks is missing.
that will also help.

Jax
 
If you are using VS, the System.dll is already referenced, so chances are you
are missing another assembly in your project. It wouldn't hurt to verify that
you still have the System.dll though.
 
Back
Top