/// <summary>
        /// 转换为字符串,去掉末尾0
        /// </summary>
        /// <param name="target">被转换的对象</param>
        /// <returns>去掉末尾0的decimal</returns>
        public static string RemoveLastZero(this decimal target)
        {
            return target.ToString("G0");
        }

 

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案