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.
次のコードがあります
$suma += round(1*43067.8000,2); $suma += round(-1*18875.1800,2); $suma += round(-1*15293.9700,2); $suma += round(-1*8898.6500,2); print $suma;
出力は 3.6379788070917E-12 です
足し算の前に四捨五入すると答えが0にならないのはなぜですか?