求一个函数? 例如 文字 "88,888.23" 改为 88888.23 删除带双引号和逗号 

解决方案 »

  1.   

    replace(replace("88,888.23","""",""),",","")
      

  2.   

    string str = "8888,888.123";
    string strRet = str.Replace(@"""", "").Replace(",");
      

  3.   

     string str = "8888,888.123";
     string strRet = str.Replace(@"""", "").Replace(",","");
      

  4.   


    public string ReplaceString(string str)
    {
       return str.Replace("\"","").Replace(",","")
    }
      

  5.   


                string s = "88,888.23";
                float i = float.Parse(s);
                MessageBox.Show(i.ToString());
      

  6.   

    replace还是比较好的,要不就使用正则表达式提出数字和小数点
      

  7.   

    上次理解错了!
    DECLARE @maco varchar(200)
    SET @maco='''''88,888.23''''';
    SELECT @maco AS 初值  
    SELECT replace(replace(@maco,',',''),'''','') AS 更新值