首页 > 在字符串中附加格式化的字符串

在字符串中附加格式化的字符串

var MyBuilder = new StringBuilder("你的工资是:");

var MySalary = 4120.24;

MyBuilder.AppendFormat("{0:C}", MySalary);

 Response.Write(MyBuilder);//你的工资是:¥4,120.24

转载于:https://www.cnblogs.com/Yellowshorts/archive/2013/02/16/2913566.html

更多相关: