math方法的 sqrt  咋用

解决方案 »

  1.   

    直接调用 string a=math.sqrt("X");
      

  2.   

    double sqrt(double x); 
      

  3.   

    double a=Math.Sqrt(2.0);
    MessageBox.Show(a.ToSting());结果:1.4142135
      

  4.   

    double x = 2;
    double y = System.Math.Sqrt(x);
      

  5.   

     1.CS就是Winfrom下面
    double a = Math.Sqrt(2.0);
                MessageBox.Show(a.ToSting());
    2.BS 就是Web下在面double a = Math.Sqrt(2.0);
                Response.Write(a.ToSting());