Search


Search something to see results

Calculates the square root of a number.

Parameters

  • x: number

    the number to calculate the root of.

Returns number

the square root if x is non-negative or NaN if x is negative.