3 ms·
For Math.sin(Math.pi/6), I'm not sure. When I run it in Python, I get 0.49999999999999994, not exactly 0.5, so it could be that your implementation is slightly
by WCSTombs 2y ago
For Math.sin(Math.pi/6), I'm not sure. When I run it in Python, I get 0.49999999999999994, not exactly 0.5, so it could be that your implementation is slightly different, or that the printed value doesn't exactly match the in-memory representation.