Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Robert Richardson   on Aug 12 In Java Category.

  
Question Answered By: Kay Rodriguez   on Aug 12

sqrt
public static double sqrt(double a)

Returns the correctly rounded positive square root  of a double value. Special
cases:

· If the argument is NaN or less than zero, then the result is NaN.
· If the argument is positive infinity, then the result is positive infinity.
· If the argument is positive zero or negative zero, then the result is the same
as the argument.

Otherwise, the result is the double value closest to the true mathetmatical
square root of the argument value.

Parameters:
a - a double

Share: