It gives ~10^-16 something very close to zero you can
console.log(Math.sin(Math.PI).toFixed(2))
solved Math.sin() behaving strangely in javascript [closed]
It gives ~10^-16 something very close to zero you can
console.log(Math.sin(Math.PI).toFixed(2))
solved Math.sin() behaving strangely in javascript [closed]