While 3 * 0.1 cannot be represented exactly, why can Javascript properly calculate 0.15 * 2? [duplicate]

后端 未结 1 451
眼角桃花
眼角桃花 2021-01-14 06:14
热议问题