Response.Write(Convert.ToDecimal(0.333333).ToString("f2"));
 Response.Write(Convert.ToDecimal(111.3).ToString("f2"));

保留几位 f 后面就写几

相关文章: