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 にしたいと思います。