sqrt function

Syntax

  • float sqrt(x)

Parameters

  1. x—float

Returns

The non-negative square root of x. If x is negative, nan is generated.

Description

The sqrt function calculates the square root of x.