By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

Where is System.Math ???

P: n/a
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
*-----------------------*
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"pontifikas" wrote...
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
Nov 16 '05 #2

P: n/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

pontifikas wrote:
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
*-----------------------*

Nov 16 '05 #3

P: n/a
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
*-----------------------*
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.