exponential 1/3 in Java : <p>Wondering what is the right way to represent <code>x^(1/3)</code>? Here is my code and it returns right value <code>2</code> for <code>8^(1/3)</code>. Wondering if any other better methods? </p>

<pre><code>int a = 8;
System.out.println(Math.pow(8, 1/3.0)); // returns 2
</code></pre>

<p>regards,
Lin</p>
