Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何四舍五入货币价值?
我基本上有以下代码,但它并没有真正做我想做的事情。
double amount = 1.236356789; Math.Round(amount, 2, MidpointRounding.ToEven);
我希望输出为 1.23。