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.
このコードを見てください
var x=2E-7 console.log(x);
実行すると、結果は 20000000 ではなく 2E-7 になります
なぜですか?それはバグですか、それとも他のものですか?
2E-7 は 2 * 10^-7 です
AKA 0.0000002
2E7 は 2 * 10^7 です
AKA 20000000