double a = 12.357; double b = double.Parse(a.ToString("0.00"));
decimal d = 12.34m; decimal dNew = decimal.Round(d,2);//2表示舍入到2位小数
Powered by: 博客园 Copyright © 2024 sunrack Powered by .NET 9.0 on Kubernetes