Java lang math public final class math extends object the class math contains methods for performing basic numeric operations such as the elementary exponential logarithm square root and trigonometric functions.
Java lang math square root.
The java lang math sqrt is used to return the square root of a number.
Java lang math public final class math extends object the class math contains methods for performing basic numeric operations such as the elementary exponential logarithm square root and trigonometric functions.
If the argument is nan or less than zero the result is nan.
If the argument passed is positive zero or negative zero then the result will be same as that of the argument.
If the argument is nan or negative then the result is nan.
The java lang math class contains methods for performing basic numeric operations such as the elementary exponential logarithm square root and trigonometric functions.
If the argument is positive double value this method will return the square root of a given value.
If the argument is positive infinity then the result is positive infinity.
The java lang math sqrt returns the square root of a value of type double passed to it as argument.
Following is the declaration for java lang math class.
If the argument is nan or less than zero.
If the argument is positive double value this method will return the square root of a given value.
The java lang math sqrt double a returns the correctly rounded positive square root of a double value.