Provide the square root values for various numbers.
System. |
The sqrt()
method calculates the square root of a given number.
|
Parameter |
Description |
number |
“Necessary. A number for which the square root needs to be calculated.” |
Returns: |
“A double value indicating the square root of a number. If the number is less than 0, it returns NaN.” |
Java Version: |
Any |