小数を計算してきれいな値になることを期待してはいけなくて、それはそれとして int を明示的に扱いづらい(BigInt とかはあるにせよ)ので int のつもりで渡したパラメーターが外部ライブラリで double/float になってたみたいな悲しい事故が起こりがち
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.