Where is System.Math ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pontifikas

    Where is System.Math ???

    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:

    *-----------------------*
  • Bjorn Abelli

    #2
    Re: Where is System.Math ???


    "pontifikas " wrote...
    [color=blue]
    > 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?[/color]

    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.
    [color=blue]
    > Any Ideas?[/color]

    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...

    [color=blue]
    > What could I be doing wrong?[/color]

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

    // Bjorn A


    Comment

    • John M Deal

      #3
      Re: Where is System.Math ???

      I may be misunderstandin g 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:[color=blue]
      > 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
      > *-----------------------*[/color]

      Comment

      • pontifikas

        #4
        re:Where is System.Math ???

        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:

        *-----------------------*

        Comment

        Working...