Java Square Root Integer Operations Without Casting?
<p>The <code>Math.sqrt()</code> function takes a double as an argument and returns a double. I'm working with a program that uses a perfect square grid in all circumstances, and I need to obtain the square root in integer form. Is the only way to do this to cast the argument as an <code>int</code> and then return an <code>int</code>-casted double? </p>
