就是小数转换成百分比并保留两们小数!
请高手指点!

解决方案 »

  1.   

            float f = 0.35689f;
            string s = (f * 100).ToString("F2")+"%";
      

  2.   


            float count = 0.35689F;
            Response.Write(count.ToString("P"));
      

  3.   


    declare @i float
    set @i=0.35689
    select @i as '数值'
    /*
    数值
    ----------------------
    0.35689
    */select cast(round(@i*100,2) as varchar(9))+'%' as '百分比'
    /*
    百分比
    ----------
    35.69%
    */
      

  4.   


    string str=string.Format("{0:#.##%}", Math.Round(0.3623, 2));