KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel