Where is System.Math ???

  • Thread starter Thread starter pontifikas
  • Start date Start date
P

pontifikas

I'm pretty damn sure there should be a System.Math library somewhere
around .Net.

But I cannot find it.
What is the name of the reference for it?
Any Ideas?
What could I be doing wrong?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
...
I'm pretty damn sure there should be a System.Math
library somewhere around .Net.

But I cannot find it.
What is the name of the reference for it?

My guess is that you're looking for the *class* System.Math, that provides
constants and static methods for trigonometric, logarithmic, and other
common mathematical functions.

It's found in Mscorlib.dll, where really most of the useful stuff in the
System namespace can be found. This assembly is present and available to the
compiler and CLR by default.
Any Ideas?

To use it, you just use it! E.g.:

double twoPowerFour = System.Math.Pow(2.0, 4.0);

If it doesn't work, your installation is most likely corrupt somehow...

What could I be doing wrong?

That's impossible to know, as we don't know what you're doing now...

// Bjorn A
 
I may be misunderstanding what you are after but in both ASP.Net and
WinForms projects the System.Math class (and all it's static methods)
are available by default. They are part of the mscorlib.dll assembly.
You should be able to use them outright. The help file has information
about the class under the Math Class topic. If this isn't what you were
after, please provide more details so we can try to address it.

Have A Better One!

John M Deal, MCP
Necessity Software
 
Thank you for the replies mates but I found out what my mistake was.

This is a class providing static methods.So it doesn't need to be
included(using System.Math) as I thought it should.

Anyway.Thanx again. :)

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
Back
Top