.ToString().TrimEnd('.','0') 来自:http://zhidao.baidu.com/question/241077663.html 转载于:https://www.cnblogs.com/Kprogram/archive/2013/01/09/2853605.html