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.
私は Math.round を使用してきましたが、「5」で終わる数字が丸められていないことに気付くまで、すべて問題ないように見えました。
double roundtotal = Math.round(total * 100.0) / 100.0;
たとえば、小数点以下2桁に丸めますが、46.565を46.57に丸めません
誰でも助けることができますか?