title: Raising a float to a certain power in Java
body: <p>I have a variable <code>x</code> of type <code>float</code> which should be raised to a certain power <code>p</code>. If <code>x</code> was a <code>double</code> I could have used <code>Math.pow(x, p)</code>. Is it possible to calculate <code>x^p</code> so that the result will also be a <code>float</code>?</p>