JavaScript Math trigonometrical methods return wrong results.

alert(Math.sin(Math.PI));
// sin(180) in degrees should return 0, but above code doesn't

it doesn't return 0.

Maybe problem is with JavaScript decimal number precision. Is there any workaround to get correct results?

Edit
Report