Click to See Complete Forum and Search --> : What is the square root function in Java?


Fierytycoon
May 30th, 2001, 11:24 AM
What is the square root function in java? I could not find it at java.sun. Please post here, thanks.

Vani Hemmige
May 30th, 2001, 11:30 AM
Hi,
You could use Math.sqrt(double) function. Import the java.lang package to use Math functions.
-Vani

Fierytycoon
May 30th, 2001, 11:50 AM
thanks