Java Strange Behavior with Sin and ToRadians
<p>I have been given the task of using java to produce a Sin table, however I seem to get some very weird results for some values of the input. I am using the below</p>

<pre><code>System.out.println("| sin(" + currentPoint + ") = " + Math.sin(Math.toRadians(currentPoint)));
</code></pre>

<p>Where (int) currentPoint is a value in <strong>degrees</strong> (eg 90)</p>

<p>These are results I find weird</p>

<pre><code>| sin(360) = -2.4492935982947064E-16
| sin(180) = 1.2246467991473532E-16
| sin(150) = 0.49999999999999994
| sin(120) = 0.8660254037844387
</code></pre>

<p>Expecting</p>

<pre><code>sin(360) = 0
sin(180) = 0
sin(150) = 0.5
sin(120) = 0.866025404
</code></pre>

<p>Am I missing something?</p>
