Mathematical expression rounding using JS

前端 未结 0 1579
长情又很酷
长情又很酷 2021-01-17 02:13
let e = Math.sin(Math.PI);
document.write(e)

The expression result is 1.2246467991473532e-16 but I want to get 0 but if I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题