sqrt()

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

Syntax

sqrt()

Usage

Special cases:

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

Otherwise, the result is the double value closest to the true mathematical square root of the value