1、百分比int i = 400; int j = 200; string p = ((double)i / j).ToString("P");//結果:200.00% p = string.Format("{0:p}",0.126)
確定! 回上一頁