Is it safe when compare 2 float/double directly in Java?
<p>Is it safe if I use comparision like this (a is int, b and c is float/double):</p>

<pre><code>a == b
b == c
</code></pre>

<p>It may hear ridiculous, but in my old programing language, sometimes 1 + 2 == 3 is false (because left side returns 2.99999999999...). And, what about this:</p>

<pre><code>Math.sqrt(b) == Math.sqrt(c)
b / 3 == 10 / 3 //In case b = 10, does it return true?
</code></pre>
